ECL: wrap to ensure succesful linking in ECL's runtime

This commit is contained in:
Michael Raskin 2016-04-19 17:41:59 +02:00
parent 1451bb8a18
commit aaa9e85ae6

View file

@ -1,6 +1,6 @@
{stdenv, fetchurl
, libtool, autoconf, automake
, gmp, mpfr, libffi
, gmp, mpfr, libffi, makeWrapper
, noUnicode ? false,
}:
let
@ -14,7 +14,7 @@ let
sha256="16ab8qs3awvdxy8xs8jy82v8r04x4wr70l9l2j45vgag18d2nj1d";
};
buildInputs = [
libtool autoconf automake
libtool autoconf automake makeWrapper
];
propagatedBuildInputs = [
libffi gmp mpfr
@ -37,6 +37,9 @@ stdenv.mkDerivation {
;
postInstall = ''
sed -e 's/@[-a-zA-Z_]*@//g' -i $out/bin/ecl-config
wrapProgram "$out/bin/ecl" \
--prefix NIX_LDFLAGS ' ' "-L${gmp.lib or gmp.out or gmp}/lib" \
--prefix NIX_LDFLAGS ' ' "-L${libffi.lib or libffi.out or libffi}/lib"
'';
meta = {
inherit (s) version;