summaryrefslogtreecommitdiffstats
path: root/pkgs/development/interpreters/tinyscheme
diff options
context:
space:
mode:
authorRommel MARTINEZ <ebzzry@ebzzry.io>2019-01-08 09:05:38 +0800
committerRommel MARTINEZ <ebzzry@ebzzry.io>2019-01-08 09:07:02 +0800
commita2db494f6cec2bfbb4b517ccdcb28cd41ae18d40 (patch)
treead8ef1c1c3ae7608867348448db703354682080c /pkgs/development/interpreters/tinyscheme
parent381e1ff25248e411affcf2af5fb9878e6fcad016 (diff)
tinyscheme: init at 1.41
Diffstat (limited to 'pkgs/development/interpreters/tinyscheme')
-rw-r--r--pkgs/development/interpreters/tinyscheme/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/tinyscheme/default.nix b/pkgs/development/interpreters/tinyscheme/default.nix
new file mode 100644
index 000000000000..f2c5fd938cec
--- /dev/null
+++ b/pkgs/development/interpreters/tinyscheme/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+ name = "tinyscheme-${version}";
+ version = "1.41";
+
+ src = fetchurl {
+ url = "mirror://sourceforge/tinyscheme/${name}.tar.gz";
+ sha256 = "168rk4zrlhsknbvldq2jsgabpwlqkx6la44gkqmijmf7jhs11h7a";
+ };
+
+ patchPhase = ''
+ substituteInPlace scheme.c --replace "init.scm" "$out/lib/init.scm"
+ '';
+
+ installPhase = ''
+ mkdir -p $out/bin $out/lib
+ cp init.scm $out/lib
+ cp scheme $out/bin/tinyscheme
+ '';
+
+ meta = with stdenv.lib; {
+ description = "Lightweight Scheme implementation";
+ longDescription = ''
+ TinyScheme is a lightweight Scheme interpreter that implements as large a
+ subset of R5RS as was possible without getting very large and complicated.
+ '';
+ homepage = http://tinyscheme.sourceforge.net/;
+ license = licenses.bsdOriginal;
+ maintainers = [ maintainers.ebzzry ];
+ platforms = platforms.unix;
+ };
+}