Merge pull request #86378 from saschagrunert/crio-buildgomodule
cri-o: switch to buildGoModule
This commit is contained in:
commit
2c8312402d
@ -1,6 +1,6 @@
|
||||
{ stdenv
|
||||
, btrfs-progs
|
||||
, buildGoPackage
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, glibc
|
||||
, gpgme
|
||||
@ -14,21 +14,18 @@
|
||||
, pkg-config
|
||||
}:
|
||||
|
||||
buildGoPackage rec {
|
||||
buildGoModule rec {
|
||||
pname = "cri-o";
|
||||
version = "1.18.0";
|
||||
|
||||
goPackagePath = "github.com/cri-o/cri-o";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cri-o";
|
||||
repo = "cri-o";
|
||||
rev = "v${version}";
|
||||
sha256 = "142flmv54pj48rjqkd26fbxrcbx2cv6pdmrc33jgyvn6r99zliah";
|
||||
};
|
||||
|
||||
vendorSha256 = null;
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
@ -44,8 +41,6 @@ buildGoPackage rec {
|
||||
|
||||
BUILDTAGS = "apparmor seccomp selinux containers_image_ostree_stub";
|
||||
buildPhase = ''
|
||||
pushd go/src/${goPackagePath}
|
||||
|
||||
sed -i '/version.buildDate/d' Makefile
|
||||
|
||||
make binaries docs BUILDTAGS="$BUILDTAGS"
|
||||
|
Loading…
Reference in New Issue
Block a user