2018-02-25 02:23:58 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, gtk2, hicolor-icon-theme
|
2016-08-24 23:47:32 +00:00
|
|
|
, wrapGAppsHook }:
|
2014-01-09 21:02:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-04-05 14:36:50 +00:00
|
|
|
name = "yad-0.40.0";
|
2014-01-09 21:02:31 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-11-24 18:58:03 +00:00
|
|
|
url = "mirror://sourceforge/yad-dialog/files/${name}.tar.xz";
|
2018-04-05 14:36:50 +00:00
|
|
|
sha256 = "1x0fsv8nfkm8lchdawnf3zw79jaqbnvhv87sk5r8g86knv8vgl62";
|
2014-01-09 21:02:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-icon-browser"
|
|
|
|
];
|
|
|
|
|
2016-03-26 14:49:28 +00:00
|
|
|
# for gcc5: c11 inline semantics breaks the build
|
|
|
|
NIX_CFLAGS_COMPILE = "-fgnu89-inline";
|
|
|
|
|
2018-02-25 02:23:58 +00:00
|
|
|
buildInputs = [ gtk2 hicolor-icon-theme ];
|
2014-01-09 21:02:31 +00:00
|
|
|
|
2016-08-24 23:47:32 +00:00
|
|
|
nativeBuildInputs = [ 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>'
|
|
|
|
'';
|
|
|
|
|
2014-01-09 21:02:31 +00:00
|
|
|
meta = {
|
2018-11-24 18:58:03 +00:00
|
|
|
homepage = https://sourceforge.net/projects/yad-dialog/;
|
2014-08-24 14:21:08 +00: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.
|
|
|
|
'';
|
|
|
|
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ smironov ];
|
2018-07-22 14:54:01 +00:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2014-01-09 21:02:31 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|