build: add version for flake
This commit is contained in:
parent
17256317c9
commit
8d2d56bea3
@ -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 ];
|
||||||
|
|
||||||
|
@ -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; };
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user