about summary refs log tree commit diff
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authorDmitry Bogatov <git#v1@kaction.cc>2020-11-24 00:00:00 -0500
committerDmitry Bogatov <git#v1@kaction.cc>2021-01-12 00:00:00 +0000
commita5f92046ce8c563fe2f015464ef88255c20b42c7 (patch)
treea4227154740487141e718a174d6c40b4e8c2bda6 /pkgs/tools/text
parent29b658e67e0284b296e7b377d47960b5c2c4db08 (diff)
downloadnixlib-a5f92046ce8c563fe2f015464ef88255c20b42c7.tar
nixlib-a5f92046ce8c563fe2f015464ef88255c20b42c7.tar.gz
nixlib-a5f92046ce8c563fe2f015464ef88255c20b42c7.tar.bz2
nixlib-a5f92046ce8c563fe2f015464ef88255c20b42c7.tar.lz
nixlib-a5f92046ce8c563fe2f015464ef88255c20b42c7.tar.xz
nixlib-a5f92046ce8c563fe2f015464ef88255c20b42c7.tar.zst
nixlib-a5f92046ce8c563fe2f015464ef88255c20b42c7.zip
par: fix static build
This change causes rebuild of both glibc and musl dynamic variants, but
no cascade rebuilds.
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/par/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/tools/text/par/default.nix b/pkgs/tools/text/par/default.nix
index 54b5e6566e87..d988b2bbbf55 100644
--- a/pkgs/tools/text/par/default.nix
+++ b/pkgs/tools/text/par/default.nix
@@ -18,7 +18,12 @@ 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