Update flake package version
This commit is contained in:
parent
e7c4816d31
commit
b60dfb8a7b
1 changed files with 6 additions and 1 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in a new issue