summary refs log tree commit diff
path: root/pkgs/applications/graphics/sxiv/default.nix
blob: 9997d5ec734bfccad8a3c274abf6f4d4b81b18fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ 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;
  };
}