2017-09-24 13:03:56 +02:00
|
|
|
{ stdenv, fetchurl, guile, texinfo, pkgconfig }:
|
2008-02-12 12:16:53 +01:00
|
|
|
|
2015-05-11 23:37:53 +02:00
|
|
|
assert stdenv ? cc && stdenv.cc.isGNU;
|
2011-04-16 18:27:55 +02:00
|
|
|
|
2017-09-24 13:03:56 +02:00
|
|
|
let
|
|
|
|
name = "guile-lib-${version}";
|
|
|
|
version = "0.2.2";
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
inherit name;
|
2010-09-05 17:19:23 +02:00
|
|
|
|
2008-02-12 12:16:53 +01:00
|
|
|
src = fetchurl {
|
2010-09-05 17:19:23 +02:00
|
|
|
url = "mirror://savannah/guile-lib/${name}.tar.gz";
|
2013-12-16 00:24:12 +01:00
|
|
|
sha256 = "1f9n2b5b5r75lzjinyk6zp6g20g60msa0jpfrk5hhg4j8cy0ih4b";
|
2008-02-12 12:16:53 +01:00
|
|
|
};
|
|
|
|
|
2017-09-24 13:03:56 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ guile texinfo ];
|
2008-02-12 12:16:53 +01:00
|
|
|
|
2017-09-24 13:03:56 +02:00
|
|
|
# One test doesn't seem to be compatible with guile_2_2.
|
2017-09-24 10:47:16 +02:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e '/sxml.ssax.scm/d' unit-tests/Makefile*
|
|
|
|
'';
|
|
|
|
|
2008-03-26 16:20:25 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2017-09-24 13:03:56 +02:00
|
|
|
preCheck = ''
|
2011-03-28 14:05:17 +02:00
|
|
|
# Make `libgcc_s.so' visible for `pthread_cancel'.
|
2017-09-24 13:03:56 +02:00
|
|
|
export LD_LIBRARY_PATH=\
|
|
|
|
"$(dirname $(echo ${stdenv.cc.cc.lib}/lib*/libgcc_s.so)):$LD_LIBRARY_PATH"
|
|
|
|
'';
|
2010-09-05 17:19:23 +02:00
|
|
|
|
2017-09-24 13:03:56 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A collection of useful Guile Scheme modules";
|
|
|
|
longDescription = ''
|
|
|
|
guile-lib is intended as an accumulation place for pure-scheme Guile
|
|
|
|
modules, allowing for people to cooperate integrating their generic Guile
|
|
|
|
modules into a coherent library. Think "a down-scaled, limited-scope CPAN
|
|
|
|
for Guile".
|
|
|
|
'';
|
2018-12-01 18:32:32 +01:00
|
|
|
homepage = "https://www.nongnu.org/guile-lib/";
|
2017-09-24 13:03:56 +02:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ vyp ];
|
2018-05-01 00:43:54 +02:00
|
|
|
platforms = platforms.gnu ++ platforms.linux;
|
2008-02-12 12:16:53 +01:00
|
|
|
};
|
|
|
|
}
|