diff options
author | Ludovic Courtès <ludo@gnu.org> | 2008-02-12 11:16:53 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2008-02-12 11:16:53 +0000 |
commit | e2b794b80765a3142225e0023ab1aeceacc21a0e (patch) | |
tree | 570c5b763a8e3857e5186958be64b71a6b96358d /pkgs/development/guile-modules | |
parent | c81efcdedb64e4457d790aa0908c255589ba6943 (diff) |
Add Guile-Lib, a collection of useful GNU Guile modules.
svn path=/nixpkgs/trunk/; revision=10639
Diffstat (limited to 'pkgs/development/guile-modules')
-rw-r--r-- | pkgs/development/guile-modules/guile-lib/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/guile-modules/guile-lib/default.nix b/pkgs/development/guile-modules/guile-lib/default.nix new file mode 100644 index 000000000000..cc26c458a06f --- /dev/null +++ b/pkgs/development/guile-modules/guile-lib/default.nix @@ -0,0 +1,38 @@ +{stdenv, fetchurl, guile}: + +stdenv.mkDerivation rec { + name = "guile-lib-0.1.6"; + src = fetchurl { + url = "http://download.gna.org/guile-lib/" + name + ".tar.gz"; + sha256 = "827744c7954078f1f37e0bf70252ec70b4d60c1482a3542a49bd09723cf65d12"; + }; + + buildInputs = [guile]; + + postInstall = '' + # Remove modules already provided by Guile. + if "${guile}/bin/guile" -c '(use-modules (srfi srfi-34))' + then + rm -f "$out/share/guile/site/srfi/srfi-34.scm" + fi + if "${guile}/bin/guile" -c '(use-modules (srfi srfi-35))' + then + rm -f "$out/share/guile/site/srfi/srfi-35.scm" + fi + + # Make modules available under `/lib/site-guile' to comply with Guile's + # setup-hook. + mkdir -p "$out/lib/site-guile" + for f in "$out/share/guile/site"/* + do + ln -s "$f" "$out/lib/site-guile/" + done + ''; + + meta = { + description = ''Guile-Library, a set of various useful + Guile Scheme modules.''; + homepage = http://home.gna.org/guile-lib/; + license = "GPL"; + }; +} |