mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
containerd: move version/revision into buildPhase
This commit is contained in:
parent
d97118d208
commit
e5096a5041
2 changed files with 2 additions and 6 deletions
|
@ -26,12 +26,10 @@ buildGoPackage rec {
|
|||
|
||||
buildInputs = [ btrfs-progs ];
|
||||
|
||||
buildFlags = [ "VERSION=v${version}" "REVISION=${src.rev}" ];
|
||||
|
||||
buildPhase = ''
|
||||
cd go/src/${goPackagePath}
|
||||
patchShebangs .
|
||||
make binaries man $buildFlags
|
||||
make binaries man "VERSION=v${version}" "REVISION=${src.rev}"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
|
|
@ -27,14 +27,12 @@ buildGoModule rec {
|
|||
|
||||
buildInputs = [ btrfs-progs ];
|
||||
|
||||
buildFlags = [ "VERSION=v${version}" "REVISION=${src.rev}" ];
|
||||
|
||||
BUILDTAGS = lib.optionals (btrfs-progs == null) [ "no_btrfs" ];
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
patchShebangs .
|
||||
make binaries man $buildFlags
|
||||
make binaries man "VERSION=v${version}" "REVISION=${src.rev}"
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue