diff --git a/perl/default.nix b/perl/default.nix index 4687976a168..86f564d7901 100644 --- a/perl/default.nix +++ b/perl/default.nix @@ -38,7 +38,8 @@ perl.pkgs.toPerlModule (stdenv.mkDerivation { boost ] ++ lib.optional (stdenv.isLinux || stdenv.isDarwin) libsodium - ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security; + ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security + ++ lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.libs.sandbox; configureFlags = [ "--with-dbi=${perlPackages.DBI}/${perl.libPrefix}"