about summary refs log tree commit diff
path: root/pkgs/applications/misc/vp/default.nix
blob: 07dbfef2f5f565f239e3dc3059d4c6082280f2ad (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
28
{ lib, stdenv, fetchFromGitHub, autoreconfHook, SDL, SDL_image }:

stdenv.mkDerivation rec {
  pname = "vp";
  version = "1.8";

  src = fetchFromGitHub {
    owner = "erikg";
    repo = "vp";
    rev = "v${version}";
    sha256 = "08q6xrxsyj6vj0sz59nix9isqz84gw3x9hym63lz6v8fpacvykdq";
  };

  nativeBuildInputs = [ autoreconfHook ];

  buildInputs = [ SDL SDL_image ];

  env.NIX_CFLAGS_COMPILE = "-I${SDL}/include/SDL -I${SDL_image}/include/SDL";

  meta = with lib; {
    homepage = "https://brlcad.org/~erik/";
    description = "SDL based picture viewer/slideshow";
    platforms = platforms.unix;
    license  = licenses.gpl3;
    maintainers = [ maintainers.vrthra ];
    mainProgram = "vp";
  };
}