lol
1{ fetchurl, lib, stdenv, unzip, scheme, texinfo }:
2
3stdenv.mkDerivation rec {
4 pname = "slib";
5 version = "3b5";
6
7 src = fetchurl {
8 url = "https://groups.csail.mit.edu/mac/ftpdir/scm/${pname}-${version}.zip";
9 sha256 = "0q0p2d53p8qw2592yknzgy2y1p5a9k7ppjx0cfrbvk6242c4mdpq";
10 };
11
12 patches = [ ./catalog-in-library-vicinity.patch ];
13
14 nativeBuildInputs = [ unzip ];
15 buildInputs = [ scheme texinfo ];
16
17 postInstall = ''
18 ln -s mklibcat{.scm,}
19 SCHEME_LIBRARY_PATH="$out/lib/slib" make catalogs
20
21 sed -i "$out/bin/slib" \
22 -e "/^SCHEME_LIBRARY_PATH/i export PATH=\"${scheme}/bin:\$PATH\""
23 '';
24
25 # There's no test suite (?!).
26 doCheck = false;
27
28 setupHook = ./setup-hook.sh;
29
30 meta = {
31 description = "The SLIB Portable Scheme Library";
32
33 longDescription = ''
34 SLIB is a portable library for the programming language Scheme. It
35 provides a platform independent framework for using packages of Scheme
36 procedures and syntax. As distributed, SLIB contains useful packages
37 for all Scheme implementations. Its catalog can be transparently
38 extended to accommodate packages specific to a site, implementation,
39 user, or directory.
40
41 SLIB supports Bigloo, Chez, ELK 3.0, Gambit 4.0, Guile, JScheme, Kawa,
42 Larceny, MacScheme, MIT/GNU Scheme, Pocket Scheme, RScheme, scheme->C,
43 Scheme48, SCM, SCM Mac, scsh, sisc, Stk, T3.1, umb-scheme, and VSCM.
44 '';
45
46 # Public domain + permissive (non-copyleft) licensing of some files.
47 license = lib.licenses.publicDomain;
48
49 homepage = "http://people.csail.mit.edu/jaffer/SLIB";
50
51 maintainers = [ ];
52 platforms = lib.platforms.unix;
53 };
54}