ecl: add gcc into wrapper PATH

otherwise the native gcc based compiler does not work
This commit is contained in:
Tomas Hlavaty 2016-09-05 20:01:50 +02:00
parent 6ee4fd834f
commit 5f8b6b2e1d

View file

@ -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"
'';