summary refs log tree commit diff
path: root/pkgs/development/compilers/ccl
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2010-02-24 09:04:29 +0000
committerMichael Raskin <7c6f434c@mail.ru>2010-02-24 09:04:29 +0000
commit7ec7268649bbdf26018a6139c6bfc00200503e8c (patch)
tree73961d2e3a621cde57b4e53219ef2da887955263 /pkgs/development/compilers/ccl
parent1ed9b2e7a4f2ee137cd788ba866cd507a1eb7da9 (diff)
downloadnixlib-7ec7268649bbdf26018a6139c6bfc00200503e8c.tar
nixlib-7ec7268649bbdf26018a6139c6bfc00200503e8c.tar.gz
nixlib-7ec7268649bbdf26018a6139c6bfc00200503e8c.tar.bz2
nixlib-7ec7268649bbdf26018a6139c6bfc00200503e8c.tar.lz
nixlib-7ec7268649bbdf26018a6139c6bfc00200503e8c.tar.xz
nixlib-7ec7268649bbdf26018a6139c6bfc00200503e8c.tar.zst
nixlib-7ec7268649bbdf26018a6139c6bfc00200503e8c.zip
Added Clozure CL
svn path=/nixpkgs/trunk/; revision=20211
Diffstat (limited to 'pkgs/development/compilers/ccl')
-rw-r--r--pkgs/development/compilers/ccl/default.nix49
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/development/compilers/ccl/default.nix b/pkgs/development/compilers/ccl/default.nix
new file mode 100644
index 000000000000..404c0fce5232
--- /dev/null
+++ b/pkgs/development/compilers/ccl/default.nix
@@ -0,0 +1,49 @@
+a :  
+let 
+  buildInputs = with a; [
+    
+  ];
+in
+rec {
+  version = "1.4";
+  name = "ccl-${version}";
+
+  /* There are also MacOS and FreeBSD and Windows versions */
+  src = a.fetchurl {
+    url = "ftp://ftp.clozure.com/pub/release/${version}/${name}-linuxx86.tar.gz";
+    sha256 = "1z4x4kxjj2ligb2vfrx5mjww20gdkxbvgw1ax5l9c8ha802bfyg8";
+  };
+  
+  inherit buildInputs;
+  configureFlags = [];
+
+  /* doConfigure should be removed if not needed */
+  phaseNames = ["doUnpack" "doPatchElf" "doCopy"];
+
+  doCopy = a.fullDepEntry ''
+    ensureDir "$out/share"
+    cp -r . "$out/share/ccl-installation"
+
+    ensureDir "$out/bin"
+    for i in $(find . -maxdepth 1 -type f -perm +111); do
+      echo -e '#! /bin/sh\n'"$out/share/ccl-installation/$(basename "$i")"'"$@"\n' > "$out"/bin/"$(basename "$i")"
+      chmod a+x "$out"/bin/"$(basename "$i")"
+    done
+  '' ["minInit" "doUnpack" "defEnsureDir"];
+
+  doPatchElf = a.fullDepEntry ''
+    patchelfFile="$(type -P patchelf)"
+    goodInterp="$(patchelf --print-interpreter "$patchelfFile")"
+    find . -type f -perm +111 -exec  patchelf --set-interpreter "$goodInterp" '{}' ';'
+  '' ["minInit" "doUnpack"];
+      
+  meta = {
+    description = "Clozure Common Lisp";
+    maintainers = [
+      a.lib.maintainers.raskin
+    ];
+    platforms = with a.lib.platforms; 
+      linux;
+  };
+}
+