containerd: move version/revision into buildPhase

This commit is contained in:
zowoq 2021-08-22 14:29:06 +10:00
parent d97118d208
commit e5096a5041
2 changed files with 2 additions and 6 deletions

View file

@ -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 = ''

View file

@ -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
'';