about summary refs log tree commit diff
path: root/pkgs/applications/graphics/sxiv/default.nix
blob: 30513577d04b944bcfd1df50f9f33b44eaf29cdb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ stdenv, fetchurl, libX11, imlib2, giflib }:

stdenv.mkDerivation {
  name = "sxiv-1.1.1";

  src = fetchurl {
    url = "https://github.com/muennich/sxiv/archive/v1.1.1.tar.gz";
    name = "sxiv-1.1.tar.gz";
    sha256 = "07r8125xa8d5q71ql71s4i1dx4swy8hypxh2s5h7z2jnn5y9nmih";
  };

  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;
  };
}