2008-03-26 16:20:25 +01:00
|
|
|
{stdenv, fetchurl, guile, texinfo}:
|
2008-02-12 12:16:53 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "guile-lib-0.1.6";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.gna.org/guile-lib/" + name + ".tar.gz";
|
|
|
|
sha256 = "827744c7954078f1f37e0bf70252ec70b4d60c1482a3542a49bd09723cf65d12";
|
|
|
|
};
|
|
|
|
|
2008-03-26 16:20:25 +01:00
|
|
|
buildInputs = [guile texinfo];
|
2008-02-12 12:16:53 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2008-03-26 16:20:25 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2008-02-12 12:16:53 +01:00
|
|
|
meta = {
|
2008-03-26 16:20:25 +01:00
|
|
|
description = ''Guile-Library, a collection of useful Guile
|
|
|
|
Scheme modules'';
|
2008-02-12 12:16:53 +01:00
|
|
|
homepage = http://home.gna.org/guile-lib/;
|
|
|
|
license = "GPL";
|
|
|
|
};
|
|
|
|
}
|