diff options
author | Rick van Schijndel <Mindavi@users.noreply.github.com> | 2023-12-09 11:01:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-09 11:01:10 +0100 |
commit | 515794d98d984d57ad781735127993b8c5043ebf (patch) | |
tree | 5f0e1b03a6a3acad1aa04701236927882ed4ac00 | |
parent | 1f3c762a95f284c0173948b569c3c047acc289f9 (diff) | |
parent | 54466394caedd52bee91ac34f13ede65df9be6e0 (diff) |
Merge pull request #270556 from NickCao/bibutils
bibutils: fix cross compilation
-rw-r--r-- | pkgs/tools/misc/bibutils/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/tools/misc/bibutils/default.nix b/pkgs/tools/misc/bibutils/default.nix index 66a518407025e..c454e8cfa1d8b 100644 --- a/pkgs/tools/misc/bibutils/default.nix +++ b/pkgs/tools/misc/bibutils/default.nix @@ -18,13 +18,22 @@ stdenv.mkDerivation rec { --replace '-Wl,-soname,$(SONAME)' "" ''; + # the configure script is not generated by autoconf + # and do not recognize --build/--host cross compilation flags + configurePlatforms = [ ]; + configureFlags = [ (if static then "--static" else "--dynamic") "--install-dir" "$(out)/bin" "--install-lib" "$(out)/lib" ]; + dontAddPrefix = true; + makeFlags = [ + "CC:=$(CC)" + ]; + doCheck = true; checkTarget = "test"; preCheck = lib.optionalString stdenv.isDarwin '' |