cri-tools: switch to buildGoModule
This commit is contained in:
parent
e56116f752
commit
64ce60e2b3
@ -1,10 +1,10 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildGoPackage
|
, buildGoModule
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoModule rec {
|
||||||
pname = "cri-tools";
|
pname = "cri-tools";
|
||||||
version = "1.18.0";
|
version = "1.18.0";
|
||||||
|
|
||||||
@ -15,12 +15,11 @@ buildGoPackage rec {
|
|||||||
sha256 = "06sxjhjpd893fn945c1s4adri2bf7s50ddvcw5pnwb6qndzfljw6";
|
sha256 = "06sxjhjpd893fn945c1s4adri2bf7s50ddvcw5pnwb6qndzfljw6";
|
||||||
};
|
};
|
||||||
|
|
||||||
goPackagePath = "github.com/kubernetes-sigs/cri-tools";
|
vendorSha256 = null;
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
pushd go/src/${goPackagePath}
|
|
||||||
make binaries VERSION=${version}
|
make binaries VERSION=${version}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user