mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
ecl: add gcc into wrapper PATH
otherwise the native gcc based compiler does not work
This commit is contained in:
parent
6ee4fd834f
commit
5f8b6b2e1d
1 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
|||
{stdenv, fetchurl
|
||||
, libtool, autoconf, automake
|
||||
, gmp, mpfr, libffi, makeWrapper
|
||||
, noUnicode ? false,
|
||||
, noUnicode ? false
|
||||
, gcc
|
||||
}:
|
||||
let
|
||||
s = # Generated upstream information
|
||||
|
@ -17,7 +18,7 @@ let
|
|||
libtool autoconf automake makeWrapper
|
||||
];
|
||||
propagatedBuildInputs = [
|
||||
libffi gmp mpfr
|
||||
libffi gmp mpfr gcc
|
||||
];
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
|
@ -43,6 +44,7 @@ stdenv.mkDerivation {
|
|||
postInstall = ''
|
||||
sed -e 's/@[-a-zA-Z_]*@//g' -i $out/bin/ecl-config
|
||||
wrapProgram "$out/bin/ecl" \
|
||||
--prefix PATH ':' "${gcc}/bin" \
|
||||
--prefix NIX_LDFLAGS ' ' "-L${gmp.lib or gmp.out or gmp}/lib" \
|
||||
--prefix NIX_LDFLAGS ' ' "-L${libffi.lib or libffi.out or libffi}/lib"
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue