summary refs log tree commit diff
path: root/pkgs/tools/misc/yad
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2016-08-24 23:47:32 +0000
committerRobin Gloster <mail@glob.in>2016-08-25 00:00:48 +0000
commitad10bf6309d6cca75b519522a26d86cfbaf8733b (patch)
tree36df60fc61045ddedfb7614b962c6359e0c6b293 /pkgs/tools/misc/yad
parent29ec1c6b09bbde3b874e839ec89d79b11c6865a9 (diff)
downloadnixpkgs-ad10bf6309d6cca75b519522a26d86cfbaf8733b.tar
nixpkgs-ad10bf6309d6cca75b519522a26d86cfbaf8733b.tar.gz
nixpkgs-ad10bf6309d6cca75b519522a26d86cfbaf8733b.tar.bz2
nixpkgs-ad10bf6309d6cca75b519522a26d86cfbaf8733b.tar.lz
nixpkgs-ad10bf6309d6cca75b519522a26d86cfbaf8733b.tar.xz
nixpkgs-ad10bf6309d6cca75b519522a26d86cfbaf8733b.tar.zst
nixpkgs-ad10bf6309d6cca75b519522a26d86cfbaf8733b.zip
yad: 0.25.1 -> 0.37.0 and fixup icons
Diffstat (limited to 'pkgs/tools/misc/yad')
-rw-r--r--pkgs/tools/misc/yad/default.nix18
1 files changed, 8 insertions, 10 deletions
diff --git a/pkgs/tools/misc/yad/default.nix b/pkgs/tools/misc/yad/default.nix
index 2c8660a4913..52d23d141fc 100644
--- a/pkgs/tools/misc/yad/default.nix
+++ b/pkgs/tools/misc/yad/default.nix
@@ -1,12 +1,12 @@
-{ stdenv, fetchurl, pkgconfig, intltool, gtk2 }:
+{ stdenv, fetchurl, pkgconfig, intltool, gtk2, hicolor_icon_theme
+, wrapGAppsHook }:
 
 stdenv.mkDerivation rec {
-
-  name = "yad-0.25.1";
+  name = "yad-0.37.0";
 
   src = fetchurl {
-    url = "http://yad.googlecode.com/files/${name}.tar.xz";
-    sha256 = "1pljs9799xa2w3y2vjg93gqkv76z0pjh947djd7179yq3kryb57a";
+    url = "http://sourceforge.net/projects/yad-dialog/files/${name}.tar.xz";
+    sha256 = "0fhqsgml1axaa9avd0hbam5wm77c2c7q1bz4hs7fvyvdnljazvwi";
   };
 
   configureFlags = [
@@ -16,19 +16,17 @@ stdenv.mkDerivation rec {
   # for gcc5: c11 inline semantics breaks the build
   NIX_CFLAGS_COMPILE = "-fgnu89-inline";
 
-  buildInputs = [ gtk2 ];
+  buildInputs = [ gtk2 hicolor_icon_theme ];
 
-  nativeBuildInputs = [ pkgconfig intltool ];
+  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>'
   '';
 
-  preFixup = "rm $out/share/icons/hicolor/icon-theme.cache";
-
   meta = {
-    homepage = "http://code.google.com/p/yad/";
+    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