From 5f8b6b2e1d2eaff9bfdec53f5d9743dfee2e0224 Mon Sep 17 00:00:00 2001 From: Tomas Hlavaty Date: Mon, 5 Sep 2016 20:01:50 +0200 Subject: [PATCH] ecl: add gcc into wrapper PATH otherwise the native gcc based compiler does not work --- pkgs/development/compilers/ecl/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/ecl/default.nix b/pkgs/development/compilers/ecl/default.nix index 61737004e6fb..cfaf8184c690 100644 --- a/pkgs/development/compilers/ecl/default.nix +++ b/pkgs/development/compilers/ecl/default.nix @@ -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" '';