nixpkgs/pkgs/applications/graphics/sxiv/default.nix
2014-10-11 18:06:46 +02:00

24 lines
613 B
Nix

{ stdenv, fetchurl, libX11, imlib2, giflib }:
stdenv.mkDerivation rec {
name = "sxiv-1.2";
src = fetchurl {
url = "https://github.com/muennich/sxiv/archive/v1.2.tar.gz";
name = "${name}.tar.gz";
sha256 = "1wwcxy2adc67xd8x6c2sayy1cjcwrv2lvv1iwln7y4w992gbcxmc";
};
patches = [ ./146.patch ];
buildInputs = [ libX11 imlib2 giflib ];
prePatch = ''sed -i "s@/usr/local@$out@" Makefile'';
meta = {
description = "Simple X Image Viewer";
homepage = "https://github.com/muennich/sxiv";
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.linux;
};
}