lsof: fix darwin (#350651)

This commit is contained in:
Emily
2024-10-24 19:50:35 +01:00
committed by GitHub
+5 -2
View File
@@ -21,8 +21,11 @@ stdenv.mkDerivation rec {
# We remove phony 'FRC' target that forces rebuilds:
# 'version.h: FRC ...' is translated to 'version.h: ...'.
sed -i lib/dialects/*/Makefile -e 's/version.h:\s*FRC/version.h:/'
'' + lib.optionalString stdenv.hostPlatform.isDarwin ''
sed -i 's|lcurses|lncurses|g' Configure
''
# help Configure find libproc.h in $SDKROOT
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
sed -i -e 's|lcurses|lncurses|g' \
-e "s|/Library.*/MacOSX.sdk/|\"$SDKROOT\"/|" Configure
'';
depsBuildBuild = [ buildPackages.stdenv.cc ];