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