summary refs log tree commit diff
path: root/pkgs/development/compilers/ecl/default.nix
blob: fb801b6b84404fb14f1418122a4c664b36d95ca5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{builderDefsPackage
  , gmp, mpfr, libffi
  , ...} @ x:
builderDefsPackage (a :  
let 
  propagatedBuildInputs = with a; [
    gmp mpfr
  ];
  buildInputs = [ gmp libffi mpfr ];
in
rec {
  mainVersion = "12.7";
  revision = "1";
  version = "${mainVersion}.${revision}";

  name = "ecl-${version}";

  src = a.fetchurl {
    url = "mirror://sourceforge/project/ecls/ecls/${mainVersion}/${name}.tar.gz";
    sha256 = "0k8ww142g3bybvvnlijqsbidl8clbs1pb4ympk2ds07z5swvy2ap";
  };

  inherit buildInputs propagatedBuildInputs;
  configureFlags = [
    "--enable-threads"
    ]
    ++
    (a.lib.optional (! (a.lib.attrByPath ["noUnicode"] false a)) 
      "--enable-unicode")
    ;

  /* doConfigure should be removed if not needed */
  phaseNames = ["doConfigure" "doMakeInstall" "fixEclConfig"];

  fixEclConfig = a.fullDepEntry ''
    sed -e 's/@[-a-zA-Z_]*@//g' -i $out/bin/ecl-config
  '' ["minInit"];
      
  meta = {
    description = "A Lisp implementation aiming to be small and fast";
    maintainers = [
      a.lib.maintainers.raskin
    ];
    platforms = with a.lib.platforms; 
      linux;
  };
}) x