about summary refs log tree commit diff
path: root/pkgs/applications/graphics/meh/default.nix
blob: 49477277d92bdd00d2a5b0465a4aea5b08099eb1 (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
25
26
27
{ lib, stdenv, fetchFromGitHub, libX11, libXext, libjpeg, libpng, giflib }:

stdenv.mkDerivation {
  pname = "meh";
  version = "unstable-2018-10-22";

  src = fetchFromGitHub {
    owner = "jhawthorn";
    repo = "meh";
    rev = "69f653a1f16d11b12e5b600e808a740898f3223e";
    sha256 = "sha256-srSwoaajW4H4+kmE7NQAqVz9d/1q2XQ5ayQaOcGwzI0=";
  };

  installFlags = [ "PREFIX=${placeholder "out"}" ];

  outputs = [ "out" "man" ];

  buildInputs = [ libXext libX11 libjpeg libpng giflib ];

  meta = {
    description = "Minimal image viewer using raw XLib";
    homepage = "https://www.johnhawthorn.com/meh/";
    license = lib.licenses.mit;
    platforms = lib.platforms.linux;
    mainProgram = "meh";
  };
}