diff options
author | Dmitry Bogatov <git#v1@kaction.cc> | 2020-11-24 00:00:00 -0500 |
---|---|---|
committer | Dmitry Bogatov <git#v1@kaction.cc> | 2021-01-12 00:00:00 +0000 |
commit | a5f92046ce8c563fe2f015464ef88255c20b42c7 (patch) | |
tree | a4227154740487141e718a174d6c40b4e8c2bda6 /pkgs/tools/text | |
parent | 29b658e67e0284b296e7b377d47960b5c2c4db08 (diff) | |
download | nixlib-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.nix | 7 |
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 |