lol

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

+5 -2
+5 -2
pkgs/development/compilers/ecl/default.nix
··· 1 1 {stdenv, fetchurl 2 2 , libtool, autoconf, automake 3 - , gmp, mpfr, libffi 3 + , gmp, mpfr, libffi, makeWrapper 4 4 , noUnicode ? false, 5 5 }: 6 6 let ··· 14 14 sha256="16ab8qs3awvdxy8xs8jy82v8r04x4wr70l9l2j45vgag18d2nj1d"; 15 15 }; 16 16 buildInputs = [ 17 - libtool autoconf automake 17 + libtool autoconf automake makeWrapper 18 18 ]; 19 19 propagatedBuildInputs = [ 20 20 libffi gmp mpfr ··· 37 37 ; 38 38 postInstall = '' 39 39 sed -e 's/@[-a-zA-Z_]*@//g' -i $out/bin/ecl-config 40 + wrapProgram "$out/bin/ecl" \ 41 + --prefix NIX_LDFLAGS ' ' "-L${gmp.lib or gmp.out or gmp}/lib" \ 42 + --prefix NIX_LDFLAGS ' ' "-L${libffi.lib or libffi.out or libffi}/lib" 40 43 ''; 41 44 meta = { 42 45 inherit (s) version;