crun: Only build with criu support on criu supported platforms

This commit is contained in:
adisbladis 2021-02-13 23:07:53 +01:00
parent 83be4f8ea2
commit a3d0f7818a
No known key found for this signature in database
GPG Key ID: 110BFAD44C6249B7

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