nixpkgs/pkgs/development/tools/guile/g-wrap/default.nix

36 lines
1009 B
Nix
Raw Normal View History

2017-09-27 07:54:22 -07:00
{ fetchurl, stdenv, guile, guile-lib, libffi, pkgconfig, glib }:
let
name = "${pname}-${version}";
pname = "g-wrap";
version = "1.9.15";
in stdenv.mkDerivation {
inherit name;
src = fetchurl {
2017-09-27 07:54:22 -07:00
url = "mirror://savannah/${pname}/${name}.tar.gz";
2016-03-14 07:46:55 -07:00
sha256 = "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg";
};
2017-09-27 07:54:22 -07:00
# Note: Glib support is optional, but it's quite useful (e.g., it's used by
# Guile-GNOME).
buildInputs = [ guile pkgconfig glib guile-lib ];
propagatedBuildInputs = [ libffi ];
2016-12-21 14:14:18 -08:00
doCheck = true;
2017-09-27 07:54:22 -07:00
meta = with stdenv.lib; {
description = "A wrapper generator for Guile";
longDescription = ''
2017-09-27 07:54:22 -07: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.
'';
2017-09-27 07:54:22 -07:00
homepage = "http://www.nongnu.org/g-wrap/";
license = licenses.lgpl2Plus;
maintainers = with maintainers; [ taktoa ];
platforms = platforms.linux;
};
}