mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-20 23:51:03 +00:00
psutils: fix build on darwin by setting -std=c89
And void main -> int main
(cherry picked from commit ff7534f13b)
This commit is contained in:
committed by
github-actions[bot]
parent
a4f2191d13
commit
4ea664cf2c
@@ -9,9 +9,14 @@ stdenv.mkDerivation rec {
|
||||
hash = "sha256-OFPreVhLqPvieoFUJbZan38Vsljg1DoFqFa9t11YiuQ=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's/void main/int main/' *.c
|
||||
'';
|
||||
|
||||
configurePhase = ''
|
||||
sed -e 's,/usr/local/bin/perl,${perl}/bin/perl,' \
|
||||
-e "s,/usr/local,$out," \
|
||||
-e "s,CFLAGS =,CFLAGS = -std=c89," \
|
||||
Makefile.unix > Makefile
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user