gpicview: fix darwin build

This commit is contained in:
Matthew Bauer 2016-08-11 22:15:05 -05:00
parent 1705b314d5
commit 9610fc55ef

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, intltool, pkgconfig, gtk2 }:
{ stdenv, fetchurl, intltool, pkgconfig, gtk2, fetchpatch }:
stdenv.mkDerivation {
name = "gpicview-0.2.4";
@ -8,6 +8,13 @@ stdenv.mkDerivation {
sha256 = "1svcy1c8bgk0pl12yhyv16h2fl52x5vzzcv57z6qdcv5czgvgglr";
};
patches = [
(fetchpatch {
url = "https://raw.githubusercontent.com/nonas/debian-clang/master/buildlogs/gpicview/gpicview-0.2.4/debian/patches/clang_FTBFS_Wreturn-type.patch";
sha256 = "02dm966bplnv10knpdx7rlpjipk884156ggd9ij05zhza0jl8xcs";
})
];
meta = with stdenv.lib; {
description = "A simple and fast image viewer for X";
homepage = http://lxde.sourceforge.net/gpicview/;