mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
42 lines
1.2 KiB
Nix
42 lines
1.2 KiB
Nix
{ stdenv, fetchurl, pkgconfig, intltool, gtk2, hicolor_icon_theme
|
|
, wrapGAppsHook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "yad-0.37.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://sourceforge.net/projects/yad-dialog/files/${name}.tar.xz";
|
|
sha256 = "0fhqsgml1axaa9avd0hbam5wm77c2c7q1bz4hs7fvyvdnljazvwi";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|
|
|