mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
Added Clozure CL
svn path=/nixpkgs/trunk/; revision=20211
This commit is contained in:
parent
1ed9b2e7a4
commit
7ec7268649
49
pkgs/development/compilers/ccl/default.nix
Normal file
49
pkgs/development/compilers/ccl/default.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
||||
|
@ -1879,6 +1879,8 @@ let
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
ccl = builderDefsPackage ../development/compilers/ccl {};
|
||||
|
||||
dylan = import ../development/compilers/gwydion-dylan {
|
||||
inherit fetchurl stdenv perl boehmgc yacc flex readline;
|
||||
dylan =
|
||||
|
Loading…
Reference in New Issue
Block a user