diff options
author | adisbladis <adisbladis@gmail.com> | 2021-02-13 23:07:53 +0100 |
---|---|---|
committer | adisbladis <adisbladis@gmail.com> | 2021-02-13 23:07:53 +0100 |
commit | a3d0f7818af1181e505042591ac97b1b7d1afb4d (patch) | |
tree | 023caa5c4b7292c5436e17d463b2d2866278e2fc /pkgs/applications/virtualization | |
parent | 83be4f8ea2e1f2ab7d472ee78d3dec00bb15e269 (diff) |
crun: Only build with criu support on criu supported platforms
Diffstat (limited to 'pkgs/applications/virtualization')
-rw-r--r-- | pkgs/applications/virtualization/crun/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
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; |