darwin.bsdmake: fix for systems with non-standard RLIMIT_NOFILE
This commit is contained in:
parent
a41870fcba
commit
df2ded87a3
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue