2016-08-25 01:47:32 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, gtk2, hicolor_icon_theme
|
|
|
|
, wrapGAppsHook }:
|
2014-01-09 22:02:31 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-08-25 01:47:32 +02:00
|
|
|
name = "yad-0.37.0";
|
2014-01-09 22:02:31 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-08-25 01:47:32 +02:00
|
|
|
url = "http://sourceforge.net/projects/yad-dialog/files/${name}.tar.xz";
|
|
|
|
sha256 = "0fhqsgml1axaa9avd0hbam5wm77c2c7q1bz4hs7fvyvdnljazvwi";
|
2014-01-09 22:02:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-icon-browser"
|
|
|
|
];
|
|
|
|
|
2016-03-26 15:49:28 +01:00
|
|
|
# for gcc5: c11 inline semantics breaks the build
|
|
|
|
NIX_CFLAGS_COMPILE = "-fgnu89-inline";
|
|
|
|
|
2016-08-25 01:47:32 +02:00
|
|
|
buildInputs = [ gtk2 hicolor_icon_theme ];
|
2014-01-09 22:02:31 +01:00
|
|
|
|
2016-08-25 01:47:32 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool wrapGAppsHook ];
|
2014-01-09 22:02:31 +01:00
|
|
|
|
2016-03-26 15:54:07 +01: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 22:02:31 +01:00
|
|
|
meta = {
|
2016-08-25 01:47:32 +02:00
|
|
|
homepage = "http://yad-dialog.sourceforge.net/";
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "GUI dialog tool for shell scripts";
|
2014-01-09 22:02:31 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|