2021-04-15 15:57:17 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, guile
|
|
|
|
, pkg-config
|
|
|
|
, texinfo
|
|
|
|
}:
|
2008-02-12 11:16:53 +00:00
|
|
|
|
2015-05-11 22:37:53 +01:00
|
|
|
assert stdenv ? cc && stdenv.cc.isGNU;
|
2011-04-16 17:27:55 +01:00
|
|
|
|
2021-04-15 15:57:17 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "guile-lib";
|
2021-03-23 08:00:53 +00:00
|
|
|
version = "0.2.7";
|
2010-09-05 16:19:23 +01:00
|
|
|
|
2008-02-12 11:16:53 +00:00
|
|
|
src = fetchurl {
|
2021-04-15 15:57:17 +01:00
|
|
|
url = "mirror://savannah/${pname}/${pname}-${version}.tar.gz";
|
2021-03-23 08:00:53 +00:00
|
|
|
hash = "sha256-5O87hF8SGILHwM8E+BocuP02DG9ktWuGjeVUYhT5BN4=";
|
2008-02-12 11:16:53 +00:00
|
|
|
};
|
|
|
|
|
2021-04-15 15:57:17 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
guile
|
|
|
|
texinfo
|
|
|
|
];
|
2008-02-12 11:16:53 +00:00
|
|
|
|
2008-03-26 15:20:25 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2017-09-24 12:03:56 +01:00
|
|
|
preCheck = ''
|
2011-03-28 13:05:17 +01:00
|
|
|
# Make `libgcc_s.so' visible for `pthread_cancel'.
|
2017-09-24 12:03:56 +01: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 12:03:56 +01:00
|
|
|
'';
|
2010-09-05 16:19:23 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-04-15 15:57:17 +01:00
|
|
|
homepage = "https://www.nongnu.org/guile-lib/";
|
2017-09-24 12:03:56 +01:00
|
|
|
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".
|
|
|
|
'';
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ vyp ];
|
2018-04-30 23:43:54 +01:00
|
|
|
platforms = platforms.gnu ++ platforms.linux;
|
2008-02-12 11:16:53 +00:00
|
|
|
};
|
|
|
|
}
|