blob: 40ab4abf88553292f72e991a9de5874f7500588c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{ fetchurl, lib, stdenv, ncompress, libX11 }:
stdenv.mkDerivation rec {
name = "stalin-0.11";
src = fetchurl {
url = "ftp://ftp.ecn.purdue.edu/qobi/stalin.tar.Z";
sha256 = "0lz8riccpigdixwf6dswwva6s4kxaz3dzxhkqhcxgwmffy30vw8s";
};
buildInputs = [ ncompress libX11 ];
buildPhase = '' ./build '';
installPhase = ''
mkdir -p "$out/bin"
cp stalin "$out/bin"
mkdir -p "$out/man/man1"
cp stalin.1 "$out/man/man1"
mkdir -p "$out/share/emacs/site-lisp"
cp stalin.el "$out/share/emacs/site-lisp"
mkdir -p "$out/doc/${name}"
cp README "$out/doc/${name}"
mkdir -p "$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 = lib.licenses.gpl2Plus;
description = "An optimizing Scheme compiler";
maintainers = [ ];
platforms = ["i686-linux"]; # doesn't want to work on 64-bit platforms
};
}
|