tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
ECL: wrap to ensure succesful linking in ECL's runtime
Michael Raskin
10 years ago
aaa9e85a
1451bb8a
+5
-2
1 changed file
expand all
collapse all
unified
split
pkgs
development
compilers
ecl
default.nix
+5
-2
pkgs/development/compilers/ecl/default.nix
reviewed
···
1
1
{stdenv, fetchurl
2
2
, libtool, autoconf, automake
3
3
-
, gmp, mpfr, libffi
3
3
+
, gmp, mpfr, libffi, makeWrapper
4
4
, noUnicode ? false,
5
5
}:
6
6
let
···
14
14
sha256="16ab8qs3awvdxy8xs8jy82v8r04x4wr70l9l2j45vgag18d2nj1d";
15
15
};
16
16
buildInputs = [
17
17
-
libtool autoconf automake
17
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
40
+
wrapProgram "$out/bin/ecl" \
41
41
+
--prefix NIX_LDFLAGS ' ' "-L${gmp.lib or gmp.out or gmp}/lib" \
42
42
+
--prefix NIX_LDFLAGS ' ' "-L${libffi.lib or libffi.out or libffi}/lib"
40
43
'';
41
44
meta = {
42
45
inherit (s) version;