Skip to content

Commit

Permalink
Merge pull request #270556 from NickCao/bibutils
Browse files Browse the repository at this point in the history
bibutils: fix cross compilation
  • Loading branch information
Mindavi authored Dec 9, 2023
2 parents 1f3c762 + 5446639 commit 515794d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/tools/misc/bibutils/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ''
Expand Down

0 comments on commit 515794d

Please sign in to comment.