From d2bf361fd475ed8155e98b65e40e8ecf7dc2a784 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 23 May 2022 19:48:56 -0700 Subject: feat(resume): set the version using the date --- .gitignore | 1 + users/fcuny/resume/flake.nix | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 698c49d..eff3459 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /users/fcuny/blog/.hugo_build.lock /users/fcuny/notes/.hugo_build.lock +/users/fcuny/resume/result diff --git a/users/fcuny/resume/flake.nix b/users/fcuny/resume/flake.nix index fbb2755..243fdde 100644 --- a/users/fcuny/resume/flake.nix +++ b/users/fcuny/resume/flake.nix @@ -11,8 +11,9 @@ in { defaultPackage = pkgs.stdenv.mkDerivation { name = "resume"; - buildInputs = with pkgs; [ pandoc ]; + version = self.lastModifiedDate; src = ./.; + buildInputs = with pkgs; [ pandoc ]; buildPhase = '' pandoc --self-contained --css styles/resume.css --from org --to html --output resume.html readme.org ''; -- cgit 1.4.1