aboutsummaryrefslogtreecommitdiff
path: root/users/fcuny/resume/flake.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-01 13:31:35 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-01 13:31:35 -0700
commit311d59a48303d2a3bd6b05d47d68fb4c0f82bfae (patch)
tree6aba50cd07b1c842bc5a66be486f032fe34bd036 /users/fcuny/resume/flake.nix
downloadinfra-311d59a48303d2a3bd6b05d47d68fb4c0f82bfae.tar.gz
initial commit
Diffstat (limited to '')
-rw-r--r--users/fcuny/resume/flake.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/users/fcuny/resume/flake.nix b/users/fcuny/resume/flake.nix
new file mode 100644
index 0000000..eae54f3
--- /dev/null
+++ b/users/fcuny/resume/flake.nix
@@ -0,0 +1,19 @@
+{
+ 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 ]; };
+ };
+}