Skip to content

Commit

Permalink
Merge pull request #173152 from veprbl/pr/bsdmake_fix
Browse files Browse the repository at this point in the history
darwin.bsdmake: fix for systems with non-standard RLIMIT_NOFILE
  • Loading branch information
veprbl authored Jun 5, 2022
2 parents 9e1c940 + df2ded8 commit 5906c4f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ appleDerivation {
--replace '-o ''${''${group}OWN_''${.ALLSRC:T}}' "" \
--replace '-g ''${''${group}GRP_''${.ALLSRC:T}}' "" \
--replace '-o ''${''${group}OWN} -g ''${''${group}GRP}' ""
# Workaround for https://github.com/NixOS/nixpkgs/issues/103172
# Prevents bsdmake from failing on systems that already had default limits
# increased.
substituteInPlace main.c \
--replace 'err(2, "setrlimit");' 'warn("setrlimit");'
'';

buildPhase = ''
Expand Down

0 comments on commit 5906c4f

Please sign in to comment.