2008-04-09 09:56:52 +02:00
|
|
|
{ fetchurl, stdenv, guile, libffi, pkgconfig, glib
|
|
|
|
, guileLib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2009-02-25 17:57:41 +01:00
|
|
|
name = "g-wrap-1.9.12";
|
2008-04-09 09:56:52 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://savannah/g-wrap/${name}.tar.gz";
|
2009-02-25 17:57:41 +01:00
|
|
|
sha256 = "1bkca6vj92phgk46n1qid6naxgx58kk4p1y29pap6177j81s7cc6";
|
2008-04-09 09:56:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# Note: Glib support is optional, but it's quite useful (e.g., it's
|
2009-10-06 00:21:45 +02:00
|
|
|
# used by Guile-GNOME).
|
|
|
|
buildInputs = [ guile pkgconfig glib ]
|
|
|
|
++ stdenv.lib.optional doCheck guileLib;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ libffi ];
|
2008-04-09 09:56:52 +02:00
|
|
|
|
|
|
|
# GMP 4.2.2 uses GNU "extern inline". With GCC 4.2 in C99 mode,
|
|
|
|
# this yields warnings such as:
|
|
|
|
#
|
|
|
|
# gmp.h:1606: warning: C99 inline functions are not supported; using GNU89
|
|
|
|
#
|
|
|
|
# Since G-Wrap builds in C99 mode and with `-Werror', we need to
|
|
|
|
# pass it `-fgnu89-inline'.
|
|
|
|
CFLAGS = "-fgnu89-inline";
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "G-Wrap, a wrapper generator for Guile";
|
|
|
|
longDescription = ''
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
homepage = http://www.nongnu.org/g-wrap/;
|
|
|
|
license = "LGPLv2+";
|
2009-10-06 00:21:45 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
2008-04-09 09:56:52 +02:00
|
|
|
};
|
|
|
|
}
|