···1-{ stdenv, fetchurl, intltool, pkgconfig, gtk2 }:
23stdenv.mkDerivation {
4 name = "gpicview-0.2.4";
···7 url = "mirror://sourceforge/lxde/gpicview-0.2.4.tar.gz";
8 sha256 = "1svcy1c8bgk0pl12yhyv16h2fl52x5vzzcv57z6qdcv5czgvgglr";
9 };
00000001011 meta = with stdenv.lib; {
12 description = "A simple and fast image viewer for X";
···1+{ stdenv, fetchurl, intltool, pkgconfig, gtk2, fetchpatch }:
23stdenv.mkDerivation {
4 name = "gpicview-0.2.4";
···7 url = "mirror://sourceforge/lxde/gpicview-0.2.4.tar.gz";
8 sha256 = "1svcy1c8bgk0pl12yhyv16h2fl52x5vzzcv57z6qdcv5czgvgglr";
9 };
10+11+ patches = [
12+ (fetchpatch {
13+ url = "https://raw.githubusercontent.com/nonas/debian-clang/master/buildlogs/gpicview/gpicview-0.2.4/debian/patches/clang_FTBFS_Wreturn-type.patch";
14+ sha256 = "02dm966bplnv10knpdx7rlpjipk884156ggd9ij05zhza0jl8xcs";
15+ })
16+ ];
1718 meta = with stdenv.lib; {
19 description = "A simple and fast image viewer for X";
+4-2
pkgs/applications/misc/gkrellm/default.nix
···1-{ fetchurl, stdenv, gettext, pkgconfig, glib, gtk, libX11, libSM, libICE }:
023stdenv.mkDerivation rec {
4 name = "gkrellm-2.3.5";
···7 sha256 = "12rc6zaa7kb60b9744lbrlfkxxfniprm6x0mispv63h4kh75navh";
8 };
910- buildInputs = [gettext pkgconfig glib gtk libX11 libSM libICE];
01112 # Makefiles are patched to fix references to `/usr/X11R6' and to add
13 # `-lX11' to make sure libX11's store path is in the RPATH.
···1+{ fetchurl, stdenv, gettext, pkgconfig, glib, gtk, libX11, libSM, libICE
2+, IOKit ? null }:
34stdenv.mkDerivation rec {
5 name = "gkrellm-2.3.5";
···8 sha256 = "12rc6zaa7kb60b9744lbrlfkxxfniprm6x0mispv63h4kh75navh";
9 };
1011+ buildInputs = [gettext pkgconfig glib gtk libX11 libSM libICE]
12+ ++ stdenv.lib.optionals stdenv.isDarwin [ IOKit ];
1314 # Makefiles are patched to fix references to `/usr/X11R6' and to add
15 # `-lX11' to make sure libX11's store path is in the RPATH.