aboutsummaryrefslogblamecommitdiff
path: root/users/fcuny/resume/flake.nix
blob: eae54f3bc958ed80318b56d4e9d884b8541a338e (plain) (tree)


















                                                                                                            
{
  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;

      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 ]; };
    };
}