2009-09-30 14:10:58 +01:00
|
|
|
{ fetchurl, stdenv, unzip, scheme, texinfo }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-05-19 13:16:32 +01:00
|
|
|
name = "slib-3b5";
|
2009-09-30 14:10:58 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://groups.csail.mit.edu/mac/ftpdir/scm/${name}.zip";
|
2018-05-19 13:16:32 +01:00
|
|
|
sha256 = "0q0p2d53p8qw2592yknzgy2y1p5a9k7ppjx0cfrbvk6242c4mdpq";
|
2009-09-30 14:10:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./catalog-in-library-vicinity.patch ];
|
|
|
|
|
|
|
|
buildInputs = [ unzip scheme texinfo ];
|
|
|
|
|
2018-05-19 13:16:32 +01:00
|
|
|
postInstall = ''
|
2009-09-30 14:10:58 +01:00
|
|
|
ln -s mklibcat{.scm,}
|
|
|
|
SCHEME_LIBRARY_PATH="$out/lib/slib" make catalogs
|
|
|
|
|
|
|
|
sed -i "$out/bin/slib" \
|
2009-09-30 14:11:05 +01:00
|
|
|
-e "/^SCHEME_LIBRARY_PATH/i export PATH=\"${scheme}/bin:\$PATH\""
|
2009-09-30 14:10:58 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
# There's no test suite (?!).
|
|
|
|
doCheck = false;
|
|
|
|
|
2009-09-30 14:11:05 +01:00
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
2009-09-30 14:10:58 +01:00
|
|
|
meta = {
|
|
|
|
description = "The SLIB Portable Scheme Library";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
SLIB is a portable library for the programming language Scheme. It
|
|
|
|
provides a platform independent framework for using packages of Scheme
|
|
|
|
procedures and syntax. As distributed, SLIB contains useful packages
|
|
|
|
for all Scheme implementations. Its catalog can be transparently
|
2014-12-30 02:31:03 +00:00
|
|
|
extended to accommodate packages specific to a site, implementation,
|
2009-09-30 14:10:58 +01:00
|
|
|
user, or directory.
|
|
|
|
|
|
|
|
SLIB supports Bigloo, Chez, ELK 3.0, Gambit 4.0, Guile, JScheme, Kawa,
|
|
|
|
Larceny, MacScheme, MIT/GNU Scheme, Pocket Scheme, RScheme, scheme->C,
|
|
|
|
Scheme48, SCM, SCM Mac, scsh, sisc, Stk, T3.1, umb-scheme, and VSCM.
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Public domain + permissive (non-copyleft) licensing of some files.
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.publicDomain;
|
2009-09-30 14:10:58 +01:00
|
|
|
|
|
|
|
homepage = http://people.csail.mit.edu/jaffer/SLIB;
|
|
|
|
|
2015-01-13 21:33:24 +00:00
|
|
|
maintainers = [ ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2009-09-30 14:10:58 +01:00
|
|
|
};
|
|
|
|
}
|