diff options
Diffstat (limited to 'pkgs/by-name/ze/zenity/package.nix')
-rw-r--r-- | pkgs/by-name/ze/zenity/package.nix | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/pkgs/by-name/ze/zenity/package.nix b/pkgs/by-name/ze/zenity/package.nix new file mode 100644 index 0000000000000..4a6c1a59fed4a --- /dev/null +++ b/pkgs/by-name/ze/zenity/package.nix @@ -0,0 +1,56 @@ +{ stdenv +, lib +, fetchurl +, help2man +, meson +, ninja +, pkg-config +, libxml2 +, gnome +, gtk4 +, gettext +, libadwaita +, itstool +, wrapGAppsHook4 +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "zenity"; + version = "4.0.2"; + + src = fetchurl { + url = "mirror://gnome/sources/zenity/${lib.versions.majorMinor finalAttrs.version}/zenity-${finalAttrs.version}.tar.xz"; + hash = "sha256-wW3K5G4p4iwvoLlegOBslrKuyThAFhNpyVyF7Z8JMVM="; + }; + + nativeBuildInputs = [ + help2man + meson + ninja + pkg-config + gettext + itstool + libxml2 + wrapGAppsHook4 + ]; + + buildInputs = [ + gtk4 + libadwaita + ]; + + passthru = { + updateScript = gnome.updateScript { + packageName = "zenity"; + }; + }; + + meta = with lib; { + mainProgram = "zenity"; + description = "Tool to display dialogs from the commandline and shell scripts"; + homepage = "https://gitlab.gnome.org/GNOME/zenity"; + license = licenses.lgpl21Plus; + platforms = platforms.unix; + maintainers = teams.gnome.members; + }; +}) |