Skip to content

Commit

Permalink
fish: fix build with Darwin sandbox enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
reckenrode authored and cole-h committed Jun 9, 2023
1 parent e6e3439 commit dad6320
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/shells/fish/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dad6320

Please sign in to comment.