Merge pull request #113049 from adisbladis/crun-criu-supported-platforms

crun: Only build with criu support on criu supported platforms
This commit is contained in:
adisbladis 2021-02-13 23:29:04 +01:00 committed by GitHub
commit 4c9e23d6ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@
, yajl
, nixosTests
, criu
, system
}:
let
@ -48,7 +49,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook go-md2man pkg-config python3 ];
buildInputs = [ criu libcap libseccomp systemd yajl ];
buildInputs = [ libcap libseccomp systemd yajl ]
# Criu currently only builds on x86_64-linux
++ lib.optional (lib.elem system criu.meta.platforms) criu;
enableParallelBuilding = true;