1
0

build: add version for flake

This commit is contained in:
dump_stack() 2023-05-18 12:53:46 +00:00
parent 17256317c9
commit 8d2d56bea3
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
2 changed files with 4 additions and 3 deletions

View File

@ -10,13 +10,13 @@
} }
) )
, lib , lib
, self , version
}: }:
pkgs.buildGoApplication rec { pkgs.buildGoApplication rec {
pname = "out-of-tree"; pname = "out-of-tree";
version = "unstable"; inherit version;
nativeBuildInputs = [ pkgs.makeWrapper ]; nativeBuildInputs = [ pkgs.makeWrapper ];

View File

@ -14,9 +14,10 @@
overlays = [ gomod2nix.overlays.default ]; overlays = [ gomod2nix.overlays.default ];
}; };
version = self.lastModifiedDate;
in in
{ {
packages.default = pkgs.callPackage ./. { }; packages.default = pkgs.callPackage ./. { inherit version; };
devShells.default = import ./shell.nix { inherit pkgs; }; devShells.default = import ./shell.nix { inherit pkgs; };
}) })
); );