Commit e5096a50 authored by zowoq's avatar zowoq
Browse files

containerd: move version/revision into buildPhase

parent d97118d2
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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 = ''
+1 −3
Original line number Diff line number Diff line
@@ -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
  '';