2017-09-24 11:03:56 +00:00
|
|
|
{ stdenv, fetchurl, guile, texinfo, pkgconfig }:
|
2008-02-12 11:16:53 +00:00
|
|
|
|
2015-05-11 21:37:53 +00:00
|
|
|
assert stdenv ? cc && stdenv.cc.isGNU;
|
2011-04-16 16:27:55 +00:00
|
|
|
|
2017-09-24 11:03:56 +00:00
|
|
|
let
|
|
|
|
name = "guile-lib-${version}";
|
2019-05-18 17:07:56 +00:00
|
|
|
version = "0.2.6.1";
|
2017-09-24 11:03:56 +00:00
|
|
|
in stdenv.mkDerivation {
|
|
|
|
inherit name;
|
2010-09-05 15:19:23 +00:00
|
|
|
|
2008-02-12 11:16:53 +00:00
|
|
|
src = fetchurl {
|
2010-09-05 15:19:23 +00:00
|
|
|
url = "mirror://savannah/guile-lib/${name}.tar.gz";
|
2019-05-18 17:07:56 +00:00
|
|
|
sha256 = "0aizxdif5dpch9cvs8zz5g8ds5s4xhfnwza2il5ji7fv2h7ks7bd";
|
2008-02-12 11:16:53 +00:00
|
|
|
};
|
|
|
|
|
2017-09-24 11:03:56 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ guile texinfo ];
|
2008-02-12 11:16:53 +00:00
|
|
|
|
2008-03-26 15:20:25 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2017-09-24 11:03:56 +00:00
|
|
|
preCheck = ''
|
2011-03-28 12:05:17 +00:00
|
|
|
# Make `libgcc_s.so' visible for `pthread_cancel'.
|
2017-09-24 11:03:56 +00:00
|
|
|
export LD_LIBRARY_PATH=\
|
2020-01-02 00:29:34 +00:00
|
|
|
"$(dirname $(echo ${stdenv.cc.cc.lib}/lib*/libgcc_s.so))''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
|
2017-09-24 11:03:56 +00:00
|
|
|
'';
|
2010-09-05 15:19:23 +00:00
|
|
|
|
2017-09-24 11:03:56 +00: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 17:32:32 +00:00
|
|
|
homepage = "https://www.nongnu.org/guile-lib/";
|
2017-09-24 11:03:56 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ vyp ];
|
2018-04-30 22:43:54 +00:00
|
|
|
platforms = platforms.gnu ++ platforms.linux;
|
2008-02-12 11:16:53 +00:00
|
|
|
};
|
|
|
|
}
|