cri-o: move env variable into env, use finalAttrs (#491917)

This commit is contained in:
Gergő Gutyina 2026-03-01 11:39:03 +00:00 committed by GitHub
commit 16f97584aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
};
}
})