2016-09-11 23:24:51 +02:00
|
|
|
{stdenv, fetchurl, pkgconfig, gtk2, libpng}:
|
2003-11-11 17:13:13 +01:00
|
|
|
|
2016-09-11 23:24:51 +02:00
|
|
|
assert pkgconfig != null && gtk2 != null && libpng != null;
|
2003-11-11 17:13:13 +01:00
|
|
|
# Note that we cannot just copy gtk's png attribute, since gtk might
|
|
|
|
# not be linked against png.
|
2016-09-11 23:24:51 +02:00
|
|
|
# !!! assert libpng == gtk2.libpng;
|
2003-11-11 17:13:13 +01:00
|
|
|
|
2004-03-29 19:23:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2007-01-01 20:15:51 +01:00
|
|
|
name = "gqview-2.1.5";
|
2003-11-11 17:13:13 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "mirror://sourceforge/gqview/gqview-2.1.5.tar.gz";
|
2016-09-06 02:14:47 +02:00
|
|
|
sha256 = "0ilm5s7ps9kg4f5hzgjhg0xhn6zg0v9i7jnd67zrx9h7wsaa9zhj";
|
2003-11-11 17:13:13 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ gtk2 libpng];
|
2006-10-11 18:45:55 +02:00
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-11 01:43:52 +01:00
|
|
|
|
2019-10-30 03:23:29 +01:00
|
|
|
NIX_LDFLAGS = "-lm";
|
2019-01-04 20:33:50 +01:00
|
|
|
|
2018-08-22 23:47:20 +02:00
|
|
|
meta = with stdenv.lib; {
|
2006-10-11 18:45:55 +02:00
|
|
|
description = "A fast image viewer";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://gqview.sourceforge.net";
|
2018-08-22 23:47:20 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
2006-10-11 18:45:55 +02:00
|
|
|
};
|
2003-11-11 17:13:13 +01:00
|
|
|
}
|