1{ fetchurl, stdenv, pkgconfig, gtk2 }:
2
3stdenv.mkDerivation rec {
4 name = "gtkimageview-1.6.4";
5
6 src = fetchurl {
7 url = "http://trac.bjourne.webfactional.com/chrome/common/releases/${name}.tar.gz";
8 sha256 = "1if3yh5z6nkv5wnkk0qyy9pkk03vn5rqbfk23q87kj39pqscgr37";
9 };
10
11 nativeBuildInputs = [ pkgconfig ];
12 buildInputs = [ gtk2 ];
13
14 preConfigure = ''
15 sed '/DEPRECATED_FLAGS/d' -i configure
16 sed 's/-Wall -Werror//' -i configure
17 '';
18
19 doCheck = true;
20
21 meta = {
22 homepage = "https://wiki.gnome.org/Projects/GTK%2B/GtkImageView";
23
24 description = "Image viewer widget for GTK+";
25
26 longDescription =
27 '' GtkImageView is a simple image viewer widget for GTK+. Similar to
28 the image viewer panes in gThumb or Eye of Gnome. It makes writing
29 image viewing and editing applications easy. Among its features
30 are: mouse and keyboard zooming; scrolling and dragging; adjustable
31 interpolation; GIF animation support.
32 '';
33
34 license = stdenv.lib.licenses.lgpl2Plus;
35
36 maintainers = [ ];
37 platforms = stdenv.lib.platforms.linux;
38 };
39}