about summary refs log tree commit diff
path: root/users/fcuny/resume/flake.nix
blob: 476a981f6f36eb3a32174d799ac2065b4db84d3f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  description = "Franck Cuny's resume";
  inputs = { nixpkgs.url = "github:nixos/nixpkgs"; };

  outputs = { self, nixpkgs }:
    let pkgs = nixpkgs.legacyPackages.x86_64-linux;
    in {
      defaultApp.x86_64-linux = self.publishHTML;

      # run with `nix run .#publishHTML`
      publishHTML = pkgs.writers.writeBashBin "html" ''
        set -e
        set -o pipefail
        pandoc --self-contained --css styles/resume.css --from org --to html --output resume.html readme.org
      '';

      devShell.x86_64-linux =
        pkgs.mkShell { buildInputs = with pkgs; [ git pandoc ]; };
    };
}