Add Stalin, an efficient Scheme compiler.

svn path=/nixpkgs/trunk/; revision=11927
This commit is contained in:
Ludovic Courtès 2008-05-29 12:10:10 +00:00
parent 402eaefd76
commit ecc5f11e65
3 changed files with 49 additions and 0 deletions

View File

@ -23,6 +23,8 @@ stdenv.mkDerivation rec {
-i comptime/Cc/cc.c
'';
checkTarget = "test";
meta = {
description = "Bigloo, an efficient Scheme compiler";

View File

@ -0,0 +1,42 @@
{ fetchurl, stdenv, libX11 }:
stdenv.mkDerivation rec {
name = "stalin-0.11";
src = fetchurl {
url = "ftp://ftp.ecn.purdue.edu/qobi/stalin.tar.Z";
sha256 = "0lz8riccpigdixwf6dswwva6s4kxaz3dzxhkqhcxgwmffy30vw8s";
};
buildInputs = [ libX11 ];
buildPhase = '' ./build '';
installPhase = ''
ensureDir "$out/bin"
cp stalin "$out/bin"
ensureDir "$out/man/man1"
cp stalin.1 "$out/man/man1"
ensureDir "$out/share/emacs/site-lisp"
cp stalin.el "$out/share/emacs/site-lisp"
ensureDir "$out/doc/${name}"
cp README "$out/doc/${name}"
ensureDir "$out/share/${name}/include"
cp include/* "$out/share/${name}/include"
substituteInPlace "$out/bin/stalin" \
--replace "$PWD/include/stalin" "$out/share/${name}/include/stalin"
substituteInPlace "$out/bin/stalin" \
--replace "$PWD/include" "$out/share/${name}/include"
'';
meta = {
homepage = http://www.ece.purdue.edu/~qobi/software.html;
license = "GPLv2+";
description = "Stalin, an optimizing Scheme compiler";
};
}

View File

@ -1684,6 +1684,11 @@ let pkgs = rec {
inherit stdenv fetchurl;
};
stalin = import ../development/compilers/stalin {
inherit stdenv fetchurl;
inherit (xlibs) libX11;
};
strategoLibraries = import ../development/compilers/strategoxt/libraries/stratego-libraries-0.17pre.nix {
inherit stdenv fetchurl pkgconfig aterm;
};