depot/third_party/nixpkgs/pkgs/by-name/ze/zenity/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

56 lines
1,020 B
Nix

{ 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;
};
})