diff --git a/flake.nix b/flake.nix index 5a5a666..34e459a 100644 --- a/flake.nix +++ b/flake.nix @@ -9,6 +9,10 @@ }: let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; + rev = + if (self ? rev) + then self.rev + else "dirty"; in { formatter.${system} = pkgs.alejandra; @@ -29,7 +33,8 @@ }; packages.${system}.default = pkgs.stdenv.mkDerivation { - name = "ctrlz.es"; + pname = "ctrlz.es"; + version = "v" + builtins.substring 0 7 rev; src = ./.; buildInputs = with pkgs; [hugo];