1 { lib, stdenv, fetchFromGitHub, libXft, imlib2, giflib, libexif, conf ? null }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "0xaawlfdy7b277m38mgg4423kd7p1ffn0dq4hciqs6ivbb3q9c4f";
14 configFile = lib.optionalString (conf!=null) (builtins.toFile "config.def.h" conf);
15 preBuild = lib.optionalString (conf!=null) "cp ${configFile} config.def.h";
17 buildInputs = [ libXft imlib2 giflib libexif ];
19 makeFlags = [ "PREFIX=${placeholder "out"}" ];
22 install -Dt $out/share/applications sxiv.desktop
26 description = "Simple X Image Viewer";
27 homepage = "https://github.com/muennich/sxiv";
28 license = lib.licenses.gpl2Plus;
29 platforms = lib.platforms.linux;
30 maintainers = with maintainers; [ h7x4 ];