lol
1{ stdenv, fetchurl, pkgconfig, intltool, gtk2, hicolor-icon-theme
2, wrapGAppsHook }:
3
4stdenv.mkDerivation rec {
5 name = "yad-0.40.0";
6
7 src = fetchurl {
8 url = "http://sourceforge.net/projects/yad-dialog/files/${name}.tar.xz";
9 sha256 = "1x0fsv8nfkm8lchdawnf3zw79jaqbnvhv87sk5r8g86knv8vgl62";
10 };
11
12 configureFlags = [
13 "--enable-icon-browser"
14 ];
15
16 # for gcc5: c11 inline semantics breaks the build
17 NIX_CFLAGS_COMPILE = "-fgnu89-inline";
18
19 buildInputs = [ gtk2 hicolor-icon-theme ];
20
21 nativeBuildInputs = [ pkgconfig intltool wrapGAppsHook ];
22
23 postPatch = ''
24 sed -i src/file.c -e '21i#include <glib/gprintf.h>'
25 sed -i src/form.c -e '21i#include <stdlib.h>'
26 '';
27
28 meta = {
29 homepage = http://yad-dialog.sourceforge.net/;
30 description = "GUI dialog tool for shell scripts";
31 longDescription = ''
32 Yad (yet another dialog) is a GUI dialog tool for shell scripts. It is a
33 fork of Zenity with many improvements, such as custom buttons, additional
34 dialogs, pop-up menu in notification icon and more.
35 '';
36
37 platforms = with stdenv.lib.platforms; linux;
38 maintainers = with stdenv.lib.maintainers; [ smironov ];
39 license = stdenv.lib.licenses.gpl3;
40 };
41}
42