diff options
| author | Silvan Mosberger <contact@infinisil.com> | 2023-11-25 13:41:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-25 13:41:58 +0100 |
| commit | 93895d35955782810d63ec5f0511705ca0b73dea (patch) | |
| tree | e96009414327a201c0d8d6d6926803aa02dabe13 | |
| parent | Merge pull request #269714 from NixOS/backport-269588-to-release-23.11 (diff) | |
| parent | psutils: fix build on darwin by setting -std=c89 (diff) | |
| download | nixpkgs-93895d35955782810d63ec5f0511705ca0b73dea.tar.gz | |
Merge pull request #269858 from NixOS/backport-269845-to-release-23.11
[Backport release-23.11] psutils: fix build on darwin by setting -std=c89
| -rw-r--r-- | pkgs/tools/typesetting/psutils/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/tools/typesetting/psutils/default.nix b/pkgs/tools/typesetting/psutils/default.nix index 3ff93ad23011..93c7b9f2a23a 100644 --- a/pkgs/tools/typesetting/psutils/default.nix +++ b/pkgs/tools/typesetting/psutils/default.nix @@ -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 ''; |
