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