diff options
author | xd1le <elisp.vim@gmail.com> | 2017-09-28 00:54:22 +1000 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2017-09-28 14:51:41 +0200 |
commit | 468626ce866c487d6d7fee35f7355626a14e5a0a (patch) | |
tree | b29385044df3d706c1e09c88c20afb41f7485b53 /pkgs/development/tools/guile | |
parent | f1b7d0a54fd65308ce3daa523c72726aa61d8afe (diff) | |
download | nixpkgs-468626ce866c487d6d7fee35f7355626a14e5a0a.tar nixpkgs-468626ce866c487d6d7fee35f7355626a14e5a0a.tar.gz nixpkgs-468626ce866c487d6d7fee35f7355626a14e5a0a.tar.bz2 nixpkgs-468626ce866c487d6d7fee35f7355626a14e5a0a.tar.lz nixpkgs-468626ce866c487d6d7fee35f7355626a14e5a0a.tar.xz nixpkgs-468626ce866c487d6d7fee35f7355626a14e5a0a.tar.zst nixpkgs-468626ce866c487d6d7fee35f7355626a14e5a0a.zip |
gwrap: code style nits
Diffstat (limited to 'pkgs/development/tools/guile')
-rw-r--r-- | pkgs/development/tools/guile/g-wrap/default.nix | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/pkgs/development/tools/guile/g-wrap/default.nix b/pkgs/development/tools/guile/g-wrap/default.nix index da664093d8a..313e089bf10 100644 --- a/pkgs/development/tools/guile/g-wrap/default.nix +++ b/pkgs/development/tools/guile/g-wrap/default.nix @@ -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 { - url = "mirror://savannah/g-wrap/${name}.tar.gz"; + url = "mirror://savannah/${pname}/${name}.tar.gz"; sha256 = "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg"; }; - # Note: Glib support is optional, but it's quite useful (e.g., it's - # used by Guile-GNOME). + # 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 ]; doCheck = true; - meta = { - description = "G-Wrap, a wrapper generator for Guile"; + 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. + 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 = stdenv.lib.licenses.lgpl2Plus; - maintainers = [ stdenv.lib.maintainers.taktoa ]; - platforms = stdenv.lib.platforms.linux; + homepage = "http://www.nongnu.org/g-wrap/"; + license = licenses.lgpl2Plus; + maintainers = with maintainers; [ taktoa ]; + platforms = platforms.linux; }; } |