Unverified Commit 16f97584 authored by Gergő Gutyina's avatar Gergő Gutyina Committed by GitHub
Browse files

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

parents 6af95c39 1defbcfc
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -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;
  };
}
})