2019-04-23 08:56:14 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, intltool, autoreconfHook, wrapGAppsHook
|
|
|
|
, gtk3, hicolor-icon-theme, netpbm }:
|
2014-01-09 21:02:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-23 08:56:14 +01:00
|
|
|
pname = "yad";
|
|
|
|
version = "0.42.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "v1cont";
|
|
|
|
repo = "yad";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0ym8pgbzx7ydk5rmi2kwwdyzi6pdpcps86i0c20cqcjmqh8kdl36";
|
2014-01-09 21:02:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-icon-browser"
|
2019-04-23 08:56:14 +01:00
|
|
|
"--with-gtk=gtk3"
|
|
|
|
"--with-rgb=${placeholder "out"}/share/yad/rgb.txt"
|
2014-01-09 21:02:31 +00:00
|
|
|
];
|
|
|
|
|
2019-04-23 08:56:14 +01:00
|
|
|
buildInputs = [ gtk3 hicolor-icon-theme ];
|
2014-01-09 21:02:31 +00:00
|
|
|
|
2019-04-23 08:56:14 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig intltool wrapGAppsHook ];
|
2014-01-09 21:02:31 +00:00
|
|
|
|
2016-03-26 14:54:07 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i src/file.c -e '21i#include <glib/gprintf.h>'
|
|
|
|
sed -i src/form.c -e '21i#include <stdlib.h>'
|
2019-04-23 08:56:14 +01:00
|
|
|
|
|
|
|
# there is no point to bring in the whole netpbm package just for this file
|
|
|
|
install -Dm644 ${netpbm}/share/netpbm/misc/rgb.txt $out/share/yad/rgb.txt
|
2016-03-26 14:54:07 +00:00
|
|
|
'';
|
|
|
|
|
2019-04-23 08:56:14 +01:00
|
|
|
postAutoreconf = ''
|
|
|
|
intltoolize
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-11-24 18:58:03 +00:00
|
|
|
homepage = https://sourceforge.net/projects/yad-dialog/;
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "GUI dialog tool for shell scripts";
|
2014-01-09 21:02:31 +00:00
|
|
|
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.
|
|
|
|
'';
|
|
|
|
|
2019-04-23 08:56:14 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ smironov ];
|
|
|
|
platforms = with platforms; linux;
|
2014-01-09 21:02:31 +00:00
|
|
|
};
|
|
|
|
}
|