70675de9cb
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/yad/versions. These checks were done: - built on NixOS - ran ‘/nix/store/qiw8cbdki0gylr19ryi6204ybp66zni4-yad-0.40.0/bin/yad-icon-browser -h’ got 0 exit code - ran ‘/nix/store/qiw8cbdki0gylr19ryi6204ybp66zni4-yad-0.40.0/bin/yad-icon-browser --help’ got 0 exit code - ran ‘/nix/store/qiw8cbdki0gylr19ryi6204ybp66zni4-yad-0.40.0/bin/.yad-icon-browser-wrapped -h’ got 0 exit code - ran ‘/nix/store/qiw8cbdki0gylr19ryi6204ybp66zni4-yad-0.40.0/bin/.yad-icon-browser-wrapped --help’ got 0 exit code - found 0.40.0 with grep in /nix/store/qiw8cbdki0gylr19ryi6204ybp66zni4-yad-0.40.0 - directory tree listing: https://gist.github.com/0a4215eabbdbe78cf2ad8560c88f7b9c
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ stdenv, fetchurl, pkgconfig, intltool, gtk2, hicolor-icon-theme
|
|
, wrapGAppsHook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "yad-0.40.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://sourceforge.net/projects/yad-dialog/files/${name}.tar.xz";
|
|
sha256 = "1x0fsv8nfkm8lchdawnf3zw79jaqbnvhv87sk5r8g86knv8vgl62";
|
|
};
|
|
|
|
configureFlags = [
|
|
"--enable-icon-browser"
|
|
];
|
|
|
|
# for gcc5: c11 inline semantics breaks the build
|
|
NIX_CFLAGS_COMPILE = "-fgnu89-inline";
|
|
|
|
buildInputs = [ gtk2 hicolor-icon-theme ];
|
|
|
|
nativeBuildInputs = [ pkgconfig intltool wrapGAppsHook ];
|
|
|
|
postPatch = ''
|
|
sed -i src/file.c -e '21i#include <glib/gprintf.h>'
|
|
sed -i src/form.c -e '21i#include <stdlib.h>'
|
|
'';
|
|
|
|
meta = {
|
|
homepage = http://yad-dialog.sourceforge.net/;
|
|
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.
|
|
'';
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
maintainers = with stdenv.lib.maintainers; [ smironov ];
|
|
};
|
|
}
|
|
|