1 { lib, stdenv, fetchFromGitHub, pkg-config, intltool, autoreconfHook, wrapGAppsHook
2 , gtk3, hicolor-icon-theme, netpbm }:
4 stdenv.mkDerivation rec {
8 src = fetchFromGitHub {
12 sha256 = "sha256-Lp7KHASUYx3pKKCNTDGyOZslSiKFl9EGulR2yjfha9k=";
16 "--enable-icon-browser"
18 "--with-rgb=${placeholder "out"}/share/yad/rgb.txt"
21 buildInputs = [ gtk3 hicolor-icon-theme ];
23 nativeBuildInputs = [ autoreconfHook pkg-config intltool wrapGAppsHook ];
26 sed -i src/file.c -e '21i#include <glib/gprintf.h>'
27 sed -i src/form.c -e '21i#include <stdlib.h>'
29 # there is no point to bring in the whole netpbm package just for this file
30 install -Dm644 ${netpbm.out}/share/netpbm/misc/rgb.txt $out/share/yad/rgb.txt
38 homepage = "https://sourceforge.net/projects/yad-dialog/";
39 description = "GUI dialog tool for shell scripts";
41 Yad (yet another dialog) is a GUI dialog tool for shell scripts. It is a
42 fork of Zenity with many improvements, such as custom buttons, additional
43 dialogs, pop-up menu in notification icon and more.
46 license = licenses.gpl3;
47 maintainers = with maintainers; [ smironov ];
48 platforms = with platforms; linux;