gwrap: code style nits

This commit is contained in:
xd1le 2017-09-28 00:54:22 +10:00 committed by Robin Gloster
parent f1b7d0a54f
commit 468626ce86

View File

@ -1,30 +1,35 @@
{ fetchurl, stdenv, guile, libffi, pkgconfig, glib, guile-lib }: { fetchurl, stdenv, guile, guile-lib, libffi, pkgconfig, glib }:
let
name = "${pname}-${version}";
pname = "g-wrap";
version = "1.9.15";
in stdenv.mkDerivation {
inherit name;
stdenv.mkDerivation rec {
name = "g-wrap-1.9.15";
src = fetchurl { src = fetchurl {
url = "mirror://savannah/g-wrap/${name}.tar.gz"; url = "mirror://savannah/${pname}/${name}.tar.gz";
sha256 = "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg"; sha256 = "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg";
}; };
# Note: Glib support is optional, but it's quite useful (e.g., it's # Note: Glib support is optional, but it's quite useful (e.g., it's used by
# used by Guile-GNOME). # Guile-GNOME).
buildInputs = [ guile pkgconfig glib guile-lib ]; buildInputs = [ guile pkgconfig glib guile-lib ];
propagatedBuildInputs = [ libffi ]; propagatedBuildInputs = [ libffi ];
doCheck = true; doCheck = true;
meta = { meta = with stdenv.lib; {
description = "G-Wrap, a wrapper generator for Guile"; description = "A wrapper generator for Guile";
longDescription = '' longDescription = ''
G-Wrap is a tool (and Guile library) for generating function G-Wrap is a tool (and Guile library) for generating function wrappers for
wrappers for inter-language calls. It currently only supports inter-language calls. It currently only supports generating Guile
generating Guile wrappers for C functions. wrappers for C functions.
''; '';
homepage = http://www.nongnu.org/g-wrap/; homepage = "http://www.nongnu.org/g-wrap/";
license = stdenv.lib.licenses.lgpl2Plus; license = licenses.lgpl2Plus;
maintainers = [ stdenv.lib.maintainers.taktoa ]; maintainers = with maintainers; [ taktoa ];
platforms = stdenv.lib.platforms.linux; platforms = platforms.linux;
}; };
} }