about summary refs log tree commit diff
path: root/pkgs/tools/text/par
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2021-01-13 09:05:40 +0000
committerGitHub <noreply@github.com>2021-01-13 09:05:40 +0000
commitdbb48b45a54b521673ba98f9e93e1ee229317984 (patch)
treea178aa9cd7501abae09118b6d2c9ec05c50cf0d3 /pkgs/tools/text/par
parentc955b30d4cde9350ef300876621029ff450a7750 (diff)
parent11033cbb6b88c379668efc87eb2e48ed99459eba (diff)
Merge pull request #107961 from KAction/par-static
par: fix static build
Diffstat (limited to 'pkgs/tools/text/par')
-rw-r--r--pkgs/tools/text/par/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/tools/text/par/default.nix b/pkgs/tools/text/par/default.nix
index 321421a6b80e7..e4c6c5d0c0867 100644
--- a/pkgs/tools/text/par/default.nix
+++ b/pkgs/tools/text/par/default.nix
@@ -18,7 +18,10 @@ stdenv.mkDerivation {
     })
   ];
 
-  buildPhase = ''make -f protoMakefile'';
+  makefile = "protoMakefile";
+  preBuild = ''
+    makeFlagsArray+=(CC="${stdenv.cc.targetPrefix}cc -c" LINK1=${stdenv.cc.targetPrefix}cc)
+  '';
 
   installPhase = ''
     mkdir -p $out/bin