mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
fastjet-contrib: fix cross build
This commit is contained in:
parent
172d46ee3c
commit
f01beefa3d
1 changed files with 8 additions and 2 deletions
|
@ -17,10 +17,12 @@ stdenv.mkDerivation rec {
|
||||||
buildInputs = [ fastjet ];
|
buildInputs = [ fastjet ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
for f in Makefile.in */Makefile; do
|
for f in Makefile.in */Makefile scripts/internal/Template/Makefile; do
|
||||||
substituteInPlace "$f" --replace "CXX=g++" ""
|
substituteInPlace "$f" --replace "CXX=g++" ""
|
||||||
|
substituteInPlace "$f" --replace-quiet "ar " "${stdenv.cc.targetPrefix}ar "
|
||||||
|
substituteInPlace "$f" --replace-quiet "ranlib " "${stdenv.cc.targetPrefix}ranlib "
|
||||||
done
|
done
|
||||||
patchShebangs ./utils/check.sh ./utils/install-sh
|
patchShebangs --build ./utils/check.sh ./utils/install-sh
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Written in shell manually, does not support autoconf-style
|
# Written in shell manually, does not support autoconf-style
|
||||||
|
@ -28,6 +30,10 @@ stdenv.mkDerivation rec {
|
||||||
# Error: --build=x86_64-unknown-linux-gnu: unrecognised argument
|
# Error: --build=x86_64-unknown-linux-gnu: unrecognised argument
|
||||||
configurePlatforms = [ ];
|
configurePlatforms = [ ];
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
"--fastjet-config=${lib.getExe' (lib.getDev fastjet) "fastjet-config"}"
|
||||||
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue