1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 07:31:20 +00:00
nixpkgs/pkgs/tools/misc/yad/default.nix

51 lines
1.4 KiB
Nix
Raw Normal View History

2019-04-23 08:56:14 +01:00
{ stdenv, fetchFromGitHub, pkgconfig, intltool, autoreconfHook, wrapGAppsHook
, gtk3, hicolor-icon-theme, netpbm }:
stdenv.mkDerivation rec {
2019-04-23 08:56:14 +01:00
pname = "yad";
2020-04-05 08:25:48 +01:00
version = "6.0";
2019-04-23 08:56:14 +01:00
src = fetchFromGitHub {
owner = "v1cont";
repo = "yad";
rev = "v${version}";
2020-04-05 08:25:48 +01:00
sha256 = "07myjv0g0iwgclc6q9wkj25myhlc86ahy2lqma8vgv9i3rgy03p7";
};
configureFlags = [
"--enable-icon-browser"
2019-04-23 08:56:14 +01:00
"--with-gtk=gtk3"
"--with-rgb=${placeholder "out"}/share/yad/rgb.txt"
];
2019-04-23 08:56:14 +01:00
buildInputs = [ gtk3 hicolor-icon-theme ];
2019-04-23 08:56:14 +01:00
nativeBuildInputs = [ autoreconfHook 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>'
2019-04-23 08:56:14 +01:00
# there is no point to bring in the whole netpbm package just for this file
2020-02-25 23:41:09 +00:00
install -Dm644 ${netpbm.out}/share/netpbm/misc/rgb.txt $out/share/yad/rgb.txt
'';
2019-04-23 08:56:14 +01:00
postAutoreconf = ''
intltoolize
'';
meta = with stdenv.lib; {
2020-04-05 08:25:48 +01:00
homepage = "https://sourceforge.net/projects/yad-dialog/";
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.
'';
2019-04-23 08:56:14 +01:00
license = licenses.gpl3;
maintainers = with maintainers; [ smironov ];
platforms = with platforms; linux;
};
}