zenity: clean up

* format with nixpkgs-fmt
* drop unneeded dependencies
    * gnome-doc-utils → yelp-tools since 3.6.0
    * intltool → gettext since 3.16.2
* move build-time deps to nativeBuildInputs
* add metadata
This commit is contained in:
Jan Tojnar 2019-12-14 16:30:20 +01:00
parent 03423daf02
commit 54a75e9109
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,5 +1,15 @@
{ stdenv, fetchurl, pkgconfig, libxml2, libxslt, gnome3, gtk3
, gnome-doc-utils, intltool, libX11, which, itstool, wrapGAppsHook }:
{ stdenv
, fetchurl
, pkgconfig
, libxml2
, gnome3
, gtk3
, yelp-tools
, gettext
, libX11
, itstool
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "zenity";
@ -10,13 +20,19 @@ stdenv.mkDerivation rec {
sha256 = "15fdh8xfdhnwcynyh4byx3mrjxbyprqnwxzi7qn3g5wwaqryg1p7";
};
preBuild = ''
mkdir -p $out/include
'';
nativeBuildInputs = [
pkgconfig
gettext
yelp-tools
itstool
libxml2
wrapGAppsHook
];
buildInputs = [ gtk3 libxml2 libxslt libX11 itstool ];
nativeBuildInputs = [ pkgconfig intltool gnome-doc-utils which wrapGAppsHook ];
buildInputs = [
gtk3
libX11
];
passthru = {
updateScript = gnome3.updateScript {
@ -26,6 +42,8 @@ stdenv.mkDerivation rec {
};
meta = with stdenv.lib; {
description = "Tool to display dialogs from the commandline and shell scripts";
homepage = "https://wiki.gnome.org/Projects/Zenity";
platforms = platforms.linux;
maintainers = gnome3.maintainers;
};