blob: 8df5e82622494c790102c85fd366e9fdde80f677 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{ lib, stdenv, fetchurl, fetchpatch, pkg-config, SDL, SDL_image, libjpeg, libpng, libtiff }:
stdenv.mkDerivation rec {
pname = "zgv";
version = "5.9";
src = fetchurl {
url = "https://www.svgalib.org/rus/zgv/${pname}-${version}.tar.gz";
sha256 = "1fk4i9x0cpnpn3llam0zy2pkmhlr2hy3iaxhxg07v9sizd4dircj";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ SDL SDL_image libjpeg libpng libtiff ];
hardeningDisable = [ "format" ];
makeFlags = [
"BACKEND=SDL"
];
patches = [
(fetchpatch {
url = "https://foss.aueb.gr/mirrors/linux/gentoo/media-gfx/zgv/files/zgv-5.9-libpng15.patch";
sha256 = "1blw9n04c28bnwcmcn64si4f5zpg42s8yn345js88fyzi9zm19xw";
})
./switch.patch
];
patchFlags = [ "-p0" ];
installPhase = ''
mkdir -p $out/bin
cp src/zgv $out/bin
'';
meta = with lib; {
homepage = "http://www.svgalib.org/rus/zgv/";
description = "Picture viewer with a thumbnail-based selector";
license = licenses.gpl2;
maintainers = [ ];
platforms = platforms.linux;
mainProgram = "zgv";
};
}
|