nixpkgs/pkgs/applications/misc/vp/default.nix
Artturin 6b2a05e190 treewide: manual fixups for
treewide: use toString on list NIX_CFLAGS_COMPILE
treewide: move NIX_CFLAGS_COMPILE to the env attrset
2023-02-22 21:23:04 +02:00

28 lines
683 B
Nix

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