depot/third_party/nixpkgs/pkgs/development/libraries/slib/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

64 lines
1.8 KiB
Nix

{ lib, stdenv, fetchurl, scheme, texinfo, unzip }:
stdenv.mkDerivation rec {
pname = "slib";
version = "3b7";
src = fetchurl {
url = "https://groups.csail.mit.edu/mac/ftpdir/scm/${pname}-${version}.zip";
hash = "sha256-9dXNrTNTlaWlqjfv/iiqgHiyFuo5kR9lGSlnjxrCKLY=";
};
patches = [
./catalog-in-library-vicinity.patch
];
# slib:require unsupported feature color-database
postPatch = ''
substituteInPlace Makefile \
--replace " clrnamdb.scm" ""
'';
nativeBuildInputs = [ scheme texinfo unzip ];
buildInputs = [ scheme ];
postInstall = ''
ln -s mklibcat{.scm,}
SCHEME_LIBRARY_PATH="$out/lib/slib" make catalogs
sed -i \
-e '2i export PATH="${scheme}/bin:$PATH"' \
-e '3i export GUILE_AUTO_COMPILE=0' \
$out/bin/slib
'';
# There's no test suite (?!).
doCheck = false;
setupHook = ./setup-hook.sh;
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
extended to accommodate packages specific to a site, implementation,
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.
license = lib.licenses.publicDomain;
homepage = "http://people.csail.mit.edu/jaffer/SLIB";
maintainers = [ ];
platforms = lib.platforms.unix;
};
}