mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 01:24:09 +01:00
cri-o: move env variable into env, use finalAttrs (#491917)
This commit is contained in:
commit
16f97584aa
1 changed files with 11 additions and 4 deletions
|
|
@ -15,14 +15,14 @@
|
|||
go-md2man,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "cri-o";
|
||||
version = "1.35.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cri-o";
|
||||
repo = "cri-o";
|
||||
rev = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-aP3qhD2d1x+VPDifkg9lXgVD38UcongyN6vHkn8oYos=";
|
||||
};
|
||||
vendorHash = null;
|
||||
|
|
@ -52,7 +52,14 @@ buildGoModule rec {
|
|||
glibc.static
|
||||
];
|
||||
|
||||
BUILDTAGS = "apparmor seccomp selinux containers_image_openpgp containers_image_ostree_stub";
|
||||
env.BUILDTAGS = toString [
|
||||
"apparmor"
|
||||
"seccomp"
|
||||
"selinux"
|
||||
"containers_image_openpgp"
|
||||
"containers_image_ostree_stub"
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
sed -i 's;\thack/;\tbash ./hack/;g' Makefile
|
||||
|
|
@ -87,4 +94,4 @@ buildGoModule rec {
|
|||
teams = [ lib.teams.podman ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue