2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, intltool, autoreconfHook, wrapGAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, gtk3, hicolor-icon-theme, netpbm }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "yad";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "12.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "v1cont";
|
|
|
|
repo = "yad";
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-Lp7KHASUYx3pKKCNTDGyOZslSiKFl9EGulR2yjfha9k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-icon-browser"
|
|
|
|
"--with-gtk=gtk3"
|
|
|
|
"--with-rgb=${placeholder "out"}/share/yad/rgb.txt"
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ gtk3 hicolor-icon-theme ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config intltool wrapGAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i src/file.c -e '21i#include <glib/gprintf.h>'
|
|
|
|
sed -i src/form.c -e '21i#include <stdlib.h>'
|
|
|
|
|
|
|
|
# there is no point to bring in the whole netpbm package just for this file
|
|
|
|
install -Dm644 ${netpbm.out}/share/netpbm/misc/rgb.txt $out/share/yad/rgb.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
postAutoreconf = ''
|
|
|
|
intltoolize
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/yad-dialog/";
|
|
|
|
description = "GUI dialog tool for shell scripts";
|
|
|
|
longDescription = ''
|
|
|
|
Yad (yet another dialog) is a GUI dialog tool for shell scripts. It is a
|
|
|
|
fork of Zenity with many improvements, such as custom buttons, additional
|
|
|
|
dialogs, pop-up menu in notification icon and more.
|
|
|
|
'';
|
|
|
|
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ smironov ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|