git.iko.soy/typeable/nixpkgs
on master help sign in
tinyscheme: init at 1.41
commita2db494f6cec2bfbb4b517ccdcb28cd41ae18d40 authorRommel MARTINEZ <ebzzry@ebzzry.io> dateTue 8 Jan 2019, 09:05 (8 years ago) parent381e1ff
2 files changed+35
pkgs/development/interpreters/tinyscheme/default.nix+33 pkgs/top-level/all-packages.nix+2
pkgs/development/interpreters/tinyscheme/default.nixnew file+33
@@ -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+}
pkgs/top-level/all-packages.nix+2
@@ -7566,6 +7566,8 @@ in
75667566
75677567 tinycc = callPackage ../development/compilers/tinycc { };
75687568
7569+ tinyscheme = callPackage ../development/interpreters/tinyscheme { };
7570+
75697571 inherit (ocaml-ng.ocamlPackages_4_02) trv;
75707572
75717573 bupc = callPackage ../development/compilers/bupc { };