nixpkgs/pkgs/applications/graphics/sxiv/default.nix

25 lines
613 B
Nix
Raw Normal View History

2013-05-24 10:21:34 +02:00
{ stdenv, fetchurl, libX11, imlib2, giflib }:
2014-10-11 18:06:46 +02:00
stdenv.mkDerivation rec {
name = "sxiv-1.2";
2013-05-24 10:21:34 +02:00
src = fetchurl {
2014-10-11 18:06:46 +02:00
url = "https://github.com/muennich/sxiv/archive/v1.2.tar.gz";
name = "${name}.tar.gz";
sha256 = "1wwcxy2adc67xd8x6c2sayy1cjcwrv2lvv1iwln7y4w992gbcxmc";
2013-05-24 10:21:34 +02:00
};
2014-10-11 18:06:46 +02:00
patches = [ ./146.patch ];
2013-05-24 10:21:34 +02:00
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;
2013-05-24 10:21:34 +02:00
platforms = stdenv.lib.platforms.linux;
};
}