2021-01-23 12:26:19 +00:00
|
|
|
{ fetchurl, lib, stdenv, guile, guile-lib, libffi, pkg-config, glib }:
|
2008-04-09 07:56:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-09-27 14:54:22 +00:00
|
|
|
pname = "g-wrap";
|
|
|
|
version = "1.9.15";
|
2008-04-09 07:56:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://savannah/${pname}/${pname}-${version}.tar.gz";
|
2016-03-14 14:46:55 +00:00
|
|
|
sha256 = "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg";
|
2008-04-09 07:56:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-28 16:32:57 +00:00
|
|
|
|
2017-09-27 14:54:22 +00:00
|
|
|
# Note: Glib support is optional, but it's quite useful (e.g., it's used by
|
|
|
|
# Guile-GNOME).
|
2017-09-28 16:32:57 +00:00
|
|
|
buildInputs = [ guile glib guile-lib ];
|
2009-10-05 22:21:45 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ libffi ];
|
2008-04-09 07:56:52 +00:00
|
|
|
|
2016-12-21 22:14:18 +00:00
|
|
|
doCheck = true;
|
2008-04-09 07:56:52 +00:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2017-09-27 14:54:22 +00:00
|
|
|
description = "A wrapper generator for Guile";
|
2008-04-09 07:56:52 +00:00
|
|
|
longDescription = ''
|
2017-09-27 14:54:22 +00:00
|
|
|
G-Wrap is a tool (and Guile library) for generating function wrappers for
|
|
|
|
inter-language calls. It currently only supports generating Guile
|
|
|
|
wrappers for C functions.
|
2008-04-09 07:56:52 +00:00
|
|
|
'';
|
2018-12-01 17:32:32 +00:00
|
|
|
homepage = "https://www.nongnu.org/g-wrap/";
|
2017-09-27 14:54:22 +00:00
|
|
|
license = licenses.lgpl2Plus;
|
2017-09-27 14:55:23 +00:00
|
|
|
maintainers = with maintainers; [ vyp ];
|
2017-09-27 14:54:22 +00:00
|
|
|
platforms = platforms.linux;
|
2008-04-09 07:56:52 +00:00
|
|
|
};
|
|
|
|
}
|