Add Stalin, an efficient Scheme compiler.
svn path=/nixpkgs/trunk/; revision=11927
This commit is contained in:
parent
402eaefd76
commit
ecc5f11e65
@ -23,6 +23,8 @@ stdenv.mkDerivation rec {
|
||||
-i comptime/Cc/cc.c
|
||||
'';
|
||||
|
||||
checkTarget = "test";
|
||||
|
||||
meta = {
|
||||
description = "Bigloo, an efficient Scheme compiler";
|
||||
|
||||
|
42
pkgs/development/compilers/stalin/default.nix
Normal file
42
pkgs/development/compilers/stalin/default.nix
Normal 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";
|
||||
};
|
||||
}
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user