tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ecl_16_1_2: init at 16.1.2; reinstating for Maxima
Michael Raskin
9 years ago
95f3473e
7c29295d
+60
2 changed files
expand all
collapse all
unified
split
pkgs
development
compilers
ecl
16.1.2.nix
top-level
all-packages.nix
+59
pkgs/development/compilers/ecl/16.1.2.nix
···
1
1
+
{stdenv, fetchurl
2
2
+
, libtool, autoconf, automake
3
3
+
, gmp, mpfr, libffi, makeWrapper
4
4
+
, noUnicode ? false
5
5
+
, gcc
6
6
+
, threadSupport ? true
7
7
+
}:
8
8
+
let
9
9
+
s = # Generated upstream information
10
10
+
rec {
11
11
+
baseName="ecl";
12
12
+
version="16.1.2";
13
13
+
name="${baseName}-${version}";
14
14
+
url="https://common-lisp.net/project/ecl/static/files/release/ecl-16.1.2.tgz";
15
15
+
sha256="16ab8qs3awvdxy8xs8jy82v8r04x4wr70l9l2j45vgag18d2nj1d";
16
16
+
};
17
17
+
buildInputs = [
18
18
+
libtool autoconf automake makeWrapper
19
19
+
];
20
20
+
propagatedBuildInputs = [
21
21
+
libffi gmp mpfr gcc
22
22
+
];
23
23
+
in
24
24
+
stdenv.mkDerivation {
25
25
+
inherit (s) name version;
26
26
+
inherit buildInputs propagatedBuildInputs;
27
27
+
28
28
+
src = fetchurl {
29
29
+
inherit (s) url sha256;
30
30
+
};
31
31
+
32
32
+
configureFlags = [
33
33
+
(if threadSupport then "--enable-threads" else "--disable-threads")
34
34
+
"--with-gmp-prefix=${gmp.dev}"
35
35
+
"--with-libffi-prefix=${libffi.dev}"
36
36
+
]
37
37
+
++
38
38
+
(stdenv.lib.optional (! noUnicode)
39
39
+
"--enable-unicode")
40
40
+
;
41
41
+
42
42
+
hardeningDisable = [ "format" ];
43
43
+
44
44
+
postInstall = ''
45
45
+
sed -e 's/@[-a-zA-Z_]*@//g' -i $out/bin/ecl-config
46
46
+
wrapProgram "$out/bin/ecl" \
47
47
+
--prefix PATH ':' "${gcc}/bin" \
48
48
+
--prefix NIX_LDFLAGS ' ' "-L${gmp.lib or gmp.out or gmp}/lib" \
49
49
+
--prefix NIX_LDFLAGS ' ' "-L${libffi.lib or libffi.out or libffi}/lib"
50
50
+
'';
51
51
+
52
52
+
meta = {
53
53
+
inherit (s) version;
54
54
+
description = "Lisp implementation aiming to be small, fast and easy to embed";
55
55
+
license = stdenv.lib.licenses.mit ;
56
56
+
maintainers = [stdenv.lib.maintainers.raskin];
57
57
+
platforms = stdenv.lib.platforms.linux;
58
58
+
};
59
59
+
}
+1
pkgs/top-level/all-packages.nix
···
4683
4683
drumstick = callPackage ../development/libraries/drumstick { };
4684
4684
4685
4685
ecl = callPackage ../development/compilers/ecl { };
4686
4686
+
ecl_16_1_2 = callPackage ../development/compilers/ecl/16.1.2.nix { };
4686
4687
4687
4688
eql = callPackage ../development/compilers/eql {};
4688
4689