From dad6320407c2970f6d1f590c693ccb2619231ec1 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Tue, 23 May 2023 21:49:17 -0400 Subject: [PATCH] fish: fix build with Darwin sandbox enabled --- pkgs/shells/fish/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/shells/fish/default.nix b/pkgs/shells/fish/default.nix index cd8fe4d0ca26..a6284298155c 100644 --- a/pkgs/shells/fish/default.nix +++ b/pkgs/shells/fish/default.nix @@ -210,6 +210,12 @@ let "-DMAC_CODESIGN_ID=OFF" ]; + # Fish’s test suite needs to be able to look up process information and send signals. + sandboxProfile = lib.optionalString stdenv.isDarwin '' + (allow mach-lookup mach-task-name) + (allow signal (target children)) + ''; + # The optional string is kind of an inelegant way to get fish to cross compile. # Fish needs coreutils as a runtime dependency, and it gets put into # CMAKE_PREFIX_PATH, which cmake uses to look up build time programs, so it