@@ -0,0 +1,33 @@
1+{ stdenv, fetchurl }:
2+
3+stdenv.mkDerivation rec {
4+ name = "tinyscheme-${version}";
5+ version = "1.41";
6+
7+ src = fetchurl {
8+ url = "mirror://sourceforge/tinyscheme/${name}.tar.gz";
9+ sha256 = "168rk4zrlhsknbvldq2jsgabpwlqkx6la44gkqmijmf7jhs11h7a";
10+ };
11+
12+ patchPhase = ''
13+ substituteInPlace scheme.c --replace "init.scm" "$out/lib/init.scm"
14+ '';
15+
16+ installPhase = ''
17+ mkdir -p $out/bin $out/lib
18+ cp init.scm $out/lib
19+ cp scheme $out/bin/tinyscheme
20+ '';
21+
22+ meta = with stdenv.lib; {
23+ description = "Lightweight Scheme implementation";
24+ longDescription = ''
25+ TinyScheme is a lightweight Scheme interpreter that implements as large a
26+ subset of R5RS as was possible without getting very large and complicated.
27+ '';
28+ homepage = http://tinyscheme.sourceforge.net/;
29+ license = licenses.bsdOriginal;
30+ maintainers = [ maintainers.ebzzry ];
31+ platforms = platforms.unix;
32+ };
33+}