diff options
Diffstat (limited to 'pkgs/applications/graphics/zgv/default.nix')
-rw-r--r-- | pkgs/applications/graphics/zgv/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/zgv/default.nix b/pkgs/applications/graphics/zgv/default.nix new file mode 100644 index 00000000000..46d3e117d0e --- /dev/null +++ b/pkgs/applications/graphics/zgv/default.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchurl, fetchpatch, pkgconfig, SDL, SDL_image, libjpeg, libpng, libtiff }: + +stdenv.mkDerivation rec { + name = "zgv-${version}"; + version = "5.9"; + src = fetchurl { + url = "http://www.svgalib.org/rus/zgv/${name}.tar.gz"; + sha256 = "1fk4i9x0cpnpn3llam0zy2pkmhlr2hy3iaxhxg07v9sizd4dircj"; + }; + + buildInputs = [ SDL SDL_image pkgconfig libjpeg libpng libtiff ]; + + 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 stdenv.lib; { + homepage = http://www.svgalib.org/rus/zgv/; + description = "Picture viewer with a thumbnail-based selector"; + license = licenses.gpl2; + maintainers = [ maintainers.vrthra ]; + platforms = platforms.linux; + }; +} |