summary refs log tree commit diff
path: root/pkgs/desktops/gnome/core/zenity/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/desktops/gnome/core/zenity/default.nix')
-rw-r--r--pkgs/desktops/gnome/core/zenity/default.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/desktops/gnome/core/zenity/default.nix b/pkgs/desktops/gnome/core/zenity/default.nix
new file mode 100644
index 00000000000..51ad81a77a4
--- /dev/null
+++ b/pkgs/desktops/gnome/core/zenity/default.nix
@@ -0,0 +1,50 @@
+{ lib, stdenv
+, fetchurl
+, pkg-config
+, libxml2
+, gnome
+, gtk3
+, yelp-tools
+, gettext
+, libX11
+, itstool
+, wrapGAppsHook
+}:
+
+stdenv.mkDerivation rec {
+  pname = "zenity";
+  version = "3.32.0";
+
+  src = fetchurl {
+    url = "mirror://gnome/sources/zenity/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
+    sha256 = "15fdh8xfdhnwcynyh4byx3mrjxbyprqnwxzi7qn3g5wwaqryg1p7";
+  };
+
+  nativeBuildInputs = [
+    pkg-config
+    gettext
+    yelp-tools
+    itstool
+    libxml2
+    wrapGAppsHook
+  ];
+
+  buildInputs = [
+    gtk3
+    libX11
+  ];
+
+  passthru = {
+    updateScript = gnome.updateScript {
+      packageName = "zenity";
+      attrPath = "gnome.zenity";
+    };
+  };
+
+  meta = with lib; {
+    description = "Tool to display dialogs from the commandline and shell scripts";
+    homepage = "https://wiki.gnome.org/Projects/Zenity";
+    platforms = platforms.linux;
+    maintainers = teams.gnome.members;
+  };
+}