lol

Add SLIB, a portable Scheme library.

svn path=/nixpkgs/trunk/; revision=17546

+93
+29
pkgs/development/libraries/slib/catalog-in-library-vicinity.patch
··· 1 + Write the catalog in under `(library-vicinity)', which is a subdir of $out, 2 + rather than under `(implementation-vicinity)', which is a subdir of ${scheme}. 3 + 4 + The downside is that we can't build an SLIB for several Schemes at the 5 + same time. 6 + 7 + --- slib/mklibcat.scm 2007-12-24 05:47:34.000000000 +0100 8 + +++ slib/mklibcat.scm 2009-09-29 14:08:28.000000000 +0200 9 + @@ -17,7 +17,7 @@ 10 + ;promotional, or sales literature without prior written consent in 11 + ;each case. 12 + 13 + -(let ((catpath (in-vicinity (implementation-vicinity) "slibcat"))) 14 + +(let ((catpath (in-vicinity (library-vicinity) "slibcat"))) 15 + (and (file-exists? catpath) (delete-file catpath)) 16 + (call-with-output-file catpath 17 + (lambda (op) 18 + 19 + --- slib/require.scm 2009-08-03 04:09:47.000000000 +0200 20 + +++ slib/require.scm 2009-09-29 14:13:56.000000000 +0200 21 + @@ -74,7 +74,7 @@ 22 + 23 + (define (catalog:get feature) 24 + (if (not *catalog*) 25 + - (let ((slibcat (catalog:try-read (implementation-vicinity) "slibcat"))) 26 + + (let ((slibcat (catalog:try-read (library-vicinity) "slibcat"))) 27 + (cond ((not (catalog/require-version-match? slibcat)) 28 + (slib:load-source (in-vicinity (library-vicinity) "mklibcat")) 29 + (set! slibcat
+59
pkgs/development/libraries/slib/default.nix
··· 1 + { fetchurl, stdenv, unzip, scheme, texinfo }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "slib-3b2"; 5 + 6 + src = fetchurl { 7 + url = "http://groups.csail.mit.edu/mac/ftpdir/scm/${name}.zip"; 8 + sha256 = "1s6a7f3ha2bhwj4nkg34n0j511ww1nlgrn5xis8k53l8ghdrrjxi"; 9 + }; 10 + 11 + patches = [ ./catalog-in-library-vicinity.patch ]; 12 + 13 + buildInputs = [ unzip scheme texinfo ]; 14 + 15 + configurePhase = '' 16 + ensureDir "$out" 17 + sed -i "Makefile" \ 18 + -e "s|^[[:blank:]]*prefix[[:blank:]]*=.*$|prefix = $out/|g" 19 + ''; 20 + 21 + buildPhase = "make infoz"; 22 + 23 + installPhase = '' 24 + make install 25 + 26 + ln -s mklibcat{.scm,} 27 + SCHEME_LIBRARY_PATH="$out/lib/slib" make catalogs 28 + 29 + sed -i "$out/bin/slib" \ 30 + -e "/^SCHEME_LIBRARY_PATH/i export PATH=\"${scheme}/bin:$PATH\"" 31 + ''; 32 + 33 + # There's no test suite (?!). 34 + doCheck = false; 35 + 36 + meta = { 37 + description = "The SLIB Portable Scheme Library"; 38 + 39 + longDescription = '' 40 + SLIB is a portable library for the programming language Scheme. It 41 + provides a platform independent framework for using packages of Scheme 42 + procedures and syntax. As distributed, SLIB contains useful packages 43 + for all Scheme implementations. Its catalog can be transparently 44 + extended to accomodate packages specific to a site, implementation, 45 + user, or directory. 46 + 47 + SLIB supports Bigloo, Chez, ELK 3.0, Gambit 4.0, Guile, JScheme, Kawa, 48 + Larceny, MacScheme, MIT/GNU Scheme, Pocket Scheme, RScheme, scheme->C, 49 + Scheme48, SCM, SCM Mac, scsh, sisc, Stk, T3.1, umb-scheme, and VSCM. 50 + ''; 51 + 52 + # Public domain + permissive (non-copyleft) licensing of some files. 53 + license = "public domain"; 54 + 55 + homepage = http://people.csail.mit.edu/jaffer/SLIB; 56 + 57 + maintainers = [ stdenv.lib.maintainers.ludo ]; 58 + }; 59 + }
+5
pkgs/top-level/all-packages.nix
··· 4268 4268 inherit fetchurl stdenv ncurses pcre libpng zlib readline; 4269 4269 }; 4270 4270 4271 + slibGuile = import ../development/libraries/slib { 4272 + inherit fetchurl stdenv unzip texinfo; 4273 + scheme = guile; 4274 + }; 4275 + 4271 4276 snack = import ../development/libraries/snack { 4272 4277 inherit fetchurl stdenv tcl tk pkgconfig x11; 4273 4278 # optional