about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/guile/g-wrap
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/tools/guile/g-wrap')
-rw-r--r--nixpkgs/pkgs/development/tools/guile/g-wrap/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/tools/guile/g-wrap/default.nix b/nixpkgs/pkgs/development/tools/guile/g-wrap/default.nix
new file mode 100644
index 000000000000..15233979e158
--- /dev/null
+++ b/nixpkgs/pkgs/development/tools/guile/g-wrap/default.nix
@@ -0,0 +1,34 @@
+{ fetchurl, stdenv, guile, guile-lib, libffi, pkgconfig, glib }:
+
+stdenv.mkDerivation rec {
+  pname = "g-wrap";
+  version = "1.9.15";
+
+  src = fetchurl {
+    url = "mirror://savannah/${pname}/${pname}-${version}.tar.gz";
+    sha256 = "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg";
+  };
+
+  nativeBuildInputs = [ pkgconfig ];
+
+  # Note: Glib support is optional, but it's quite useful (e.g., it's used by
+  # Guile-GNOME).
+  buildInputs = [ guile glib guile-lib ];
+
+  propagatedBuildInputs = [ libffi ];
+
+  doCheck = true;
+
+  meta = with stdenv.lib; {
+    description = "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 = "https://www.nongnu.org/g-wrap/";
+    license = licenses.lgpl2Plus;
+    maintainers = with maintainers; [ vyp ];
+    platforms = platforms.linux;
+  };
+}