2010-03-17 14:44:46 +00:00
|
|
|
{ fetchurl, stdenv, ncompress, libX11 }:
|
2008-05-29 13:10:10 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "stalin-0.11";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "ftp://ftp.ecn.purdue.edu/qobi/stalin.tar.Z";
|
|
|
|
sha256 = "0lz8riccpigdixwf6dswwva6s4kxaz3dzxhkqhcxgwmffy30vw8s";
|
|
|
|
};
|
|
|
|
|
2010-03-17 14:44:46 +00:00
|
|
|
buildInputs = [ ncompress libX11 ];
|
2008-05-29 13:10:10 +01:00
|
|
|
|
|
|
|
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"
|
2010-03-17 13:56:36 +00:00
|
|
|
cp "include/"* "$out/share/${name}/include"
|
2008-05-29 13:10:10 +01:00
|
|
|
|
|
|
|
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";
|
2010-03-17 13:56:36 +00:00
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
|
|
|
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
|
2008-05-29 13:10:10 +01:00
|
|
|
};
|
|
|
|
}
|