tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
tinyscheme: init at 1.41
Rommel MARTINEZ
7 years ago
a2db494f
381e1ff2
+35
2 changed files
expand all
collapse all
unified
split
pkgs
development
interpreters
tinyscheme
default.nix
top-level
all-packages.nix
+33
pkgs/development/interpreters/tinyscheme/default.nix
···
1
1
+
{ stdenv, fetchurl }:
2
2
+
3
3
+
stdenv.mkDerivation rec {
4
4
+
name = "tinyscheme-${version}";
5
5
+
version = "1.41";
6
6
+
7
7
+
src = fetchurl {
8
8
+
url = "mirror://sourceforge/tinyscheme/${name}.tar.gz";
9
9
+
sha256 = "168rk4zrlhsknbvldq2jsgabpwlqkx6la44gkqmijmf7jhs11h7a";
10
10
+
};
11
11
+
12
12
+
patchPhase = ''
13
13
+
substituteInPlace scheme.c --replace "init.scm" "$out/lib/init.scm"
14
14
+
'';
15
15
+
16
16
+
installPhase = ''
17
17
+
mkdir -p $out/bin $out/lib
18
18
+
cp init.scm $out/lib
19
19
+
cp scheme $out/bin/tinyscheme
20
20
+
'';
21
21
+
22
22
+
meta = with stdenv.lib; {
23
23
+
description = "Lightweight Scheme implementation";
24
24
+
longDescription = ''
25
25
+
TinyScheme is a lightweight Scheme interpreter that implements as large a
26
26
+
subset of R5RS as was possible without getting very large and complicated.
27
27
+
'';
28
28
+
homepage = http://tinyscheme.sourceforge.net/;
29
29
+
license = licenses.bsdOriginal;
30
30
+
maintainers = [ maintainers.ebzzry ];
31
31
+
platforms = platforms.unix;
32
32
+
};
33
33
+
}
+2
pkgs/top-level/all-packages.nix
···
7566
7566
7567
7567
tinycc = callPackage ../development/compilers/tinycc { };
7568
7568
7569
7569
+
tinyscheme = callPackage ../development/interpreters/tinyscheme { };
7570
7570
+
7569
7571
inherit (ocaml-ng.ocamlPackages_4_02) trv;
7570
7572
7571
7573
bupc = callPackage ../development/compilers/bupc { };