git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #53614 from ebzzry/tinyscheme-1.41

tinyscheme: init at 1.41

commit0f69eb3e5b26f502edd1b501d1f152b9543de8bd authorDanylo Hlynskyi <abcz2.uprola@gmail.com> dateFri 11 Jan 2019, 02:41 (8 years ago) parent9e96bfba2db494
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
@@ -7578,6 +7578,8 @@ in
75787578
75797579 tinycc = callPackage ../development/compilers/tinycc { };
75807580
7581+ tinyscheme = callPackage ../development/interpreters/tinyscheme { };
7582+
75817583 inherit (ocaml-ng.ocamlPackages_4_02) trv;
75827584
75837585 bupc = callPackage ../development/compilers/bupc { };