uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
50
pkgs/tools/misc/yad/default.nix
Normal file
50
pkgs/tools/misc/yad/default.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{ lib, stdenv, fetchFromGitHub, pkg-config, intltool, autoreconfHook, wrapGAppsHook
|
||||
, gtk3, hicolor-icon-theme, netpbm }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "yad";
|
||||
version = "11.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "v1cont";
|
||||
repo = "yad";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-I+3euq3qel9VCDVf0Bd4XdMOCt+g/CYlnnje50lbRr8=";
|
||||
};
|
||||
|
||||
configureFlags = [
|
||||
"--enable-icon-browser"
|
||||
"--with-gtk=gtk3"
|
||||
"--with-rgb=${placeholder "out"}/share/yad/rgb.txt"
|
||||
];
|
||||
|
||||
buildInputs = [ gtk3 hicolor-icon-theme ];
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook pkg-config intltool wrapGAppsHook ];
|
||||
|
||||
postPatch = ''
|
||||
sed -i src/file.c -e '21i#include <glib/gprintf.h>'
|
||||
sed -i src/form.c -e '21i#include <stdlib.h>'
|
||||
|
||||
# there is no point to bring in the whole netpbm package just for this file
|
||||
install -Dm644 ${netpbm.out}/share/netpbm/misc/rgb.txt $out/share/yad/rgb.txt
|
||||
'';
|
||||
|
||||
postAutoreconf = ''
|
||||
intltoolize
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
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.
|
||||
'';
|
||||
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ smironov ];
|
||||
platforms = with platforms; linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue