From a3d0f7818af1181e505042591ac97b1b7d1afb4d Mon Sep 17 00:00:00 2001 From: adisbladis Date: Sat, 13 Feb 2021 23:07:53 +0100 Subject: [PATCH] crun: Only build with criu support on criu supported platforms --- pkgs/applications/virtualization/crun/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/virtualization/crun/default.nix b/pkgs/applications/virtualization/crun/default.nix index 3d73ccbf48a2..59e07530fbc0 100644 --- a/pkgs/applications/virtualization/crun/default.nix +++ b/pkgs/applications/virtualization/crun/default.nix @@ -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;