nixpkgs/pkgs/applications/graphics/sxiv/default.nix
Mateusz Kowalczyk de96fb7cc7 sxiv: update to 1.3-git and fix runtime behaviour
The fix involves using imlib2 built with giflib instead of a libungif.
Initially I split imlib2 into two but other distros seem to build imlib2
with giflib already and everything still builds with giflib version so I
migrated imlib2 to giflib all together.

Closes #4622
2014-11-03 23:03:51 +00:00

26 lines
753 B
Nix

{ stdenv, fetchgit, libX11, imlib2, giflib, libexif }:
stdenv.mkDerivation rec {
version = "1.3-git";
name = "sxiv-${version}";
src = fetchgit {
url = "git@github.com:muennich/sxiv.git";
rev = "f55d9f4283f7133ab5a137fc04ee19d1df62fafb";
sha256 = "85f734f40fdc837514b72694de12bac92fe130286fa6f1dc374e94d575ca8280";
};
postUnpack = ''
substituteInPlace $sourceRoot/Makefile \
--replace /usr/local $out
'';
buildInputs = [ libX11 imlib2 giflib libexif ];
meta = {
description = "Simple X Image Viewer";
homepage = "https://github.com/muennich/sxiv";
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
};
}