nixpkgs/pkgs/tools/misc/yad/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.5 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, pkg-config, intltool, autoreconfHook, wrapGAppsHook3
2019-04-23 09:56:14 +02:00
, gtk3, hicolor-icon-theme, netpbm }:
stdenv.mkDerivation rec {
2019-04-23 09:56:14 +02:00
pname = "yad";
2023-06-02 17:06:19 +02:00
version = "13.0";
2019-04-23 09:56:14 +02:00
src = fetchFromGitHub {
owner = "v1cont";
repo = "yad";
rev = "v${version}";
2023-06-02 17:06:19 +02:00
sha256 = "sha256-iYAhiaGfC9/OQ5HrSjX2fhpbwdZun6sxyw8o+8svcvY=";
};
configureFlags = [
"--enable-icon-browser"
2019-04-23 09:56:14 +02:00
"--with-gtk=gtk3"
"--with-rgb=${placeholder "out"}/share/yad/rgb.txt"
];
2019-04-23 09:56:14 +02:00
buildInputs = [ gtk3 hicolor-icon-theme ];
nativeBuildInputs = [ autoreconfHook pkg-config intltool wrapGAppsHook3 ];
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 09:56:14 +02:00
# there is no point to bring in the whole netpbm package just for this file
2020-02-26 00:41:09 +01:00
install -Dm644 ${netpbm.out}/share/netpbm/misc/rgb.txt $out/share/yad/rgb.txt
'';
2019-04-23 09:56:14 +02:00
postAutoreconf = ''
intltoolize
'';
meta = with lib; {
2020-04-05 09:25:48 +02: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 09:56:14 +02:00
license = licenses.gpl3;
2024-05-01 14:10:57 +02:00
mainProgram = "yad";
2019-04-23 09:56:14 +02:00
maintainers = with maintainers; [ smironov ];
platforms = with platforms; linux;
};
}