diff --git a/default.nix b/default.nix index 584aae4..d9687af 100644 --- a/default.nix +++ b/default.nix @@ -10,13 +10,13 @@ } ) , lib - , self + , version }: pkgs.buildGoApplication rec { pname = "out-of-tree"; - version = "unstable"; + inherit version; nativeBuildInputs = [ pkgs.makeWrapper ]; diff --git a/flake.nix b/flake.nix index 138e396..cd77b66 100644 --- a/flake.nix +++ b/flake.nix @@ -14,9 +14,10 @@ overlays = [ gomod2nix.overlays.default ]; }; + version = self.lastModifiedDate; in { - packages.default = pkgs.callPackage ./. { }; + packages.default = pkgs.callPackage ./. { inherit version; }; devShells.default = import ./shell.nix { inherit pkgs; }; }) );