2021-01-19 07:50:56 +01:00
|
|
|
{ lib, stdenv, fetchurl, intltool, pkg-config, gtk2, fetchpatch }:
|
2013-10-27 00:25:42 +02:00
|
|
|
|
2021-11-07 21:29:51 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gpicview";
|
|
|
|
version = "0.2.4";
|
2013-10-27 00:25:42 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-11-07 21:29:51 +01:00
|
|
|
url = "mirror://sourceforge/lxde/gpicview-${version}.tar.gz";
|
2013-10-27 00:25:42 +02:00
|
|
|
sha256 = "1svcy1c8bgk0pl12yhyv16h2fl52x5vzzcv57z6qdcv5czgvgglr";
|
|
|
|
};
|
|
|
|
|
2016-08-12 05:15:05 +02:00
|
|
|
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";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-09-25 04:49:25 +02:00
|
|
|
nativeBuildInputs = [ pkg-config intltool ];
|
2021-11-09 10:19:55 +01:00
|
|
|
|
2022-09-25 04:49:25 +02:00
|
|
|
buildInputs = [ gtk2 ];
|
2021-11-09 10:19:55 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2013-10-27 00:25:42 +02:00
|
|
|
description = "A simple and fast image viewer for X";
|
2021-11-07 21:29:51 +01:00
|
|
|
homepage = "http://lxde.sourceforge.net/gpicview/";
|
|
|
|
license = licenses.gpl2;
|
2013-10-27 00:25:42 +02:00
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
2021-11-07 21:29:51 +01:00
|
|
|
platforms = platforms.unix;
|
2013-10-27 00:25:42 +02:00
|
|
|
};
|
|
|
|
}
|