3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/graphics/timg/default.nix
Henner Zeller 9c51fce6a9 timg: 1.4.2 -> 1.4.3
Update version. Also include openslide support. The needed
dependency library became available since last release thanks
to @lromor.

Signed-off-by: Henner Zeller <h.zeller@acm.org>
2022-01-08 12:12:40 -08:00

34 lines
851 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, graphicsmagick, libjpeg
, ffmpeg, zlib, libexif, openslide }:
stdenv.mkDerivation rec {
pname = "timg";
version = "1.4.3";
src = fetchFromGitHub {
owner = "hzeller";
repo = "timg";
rev = "v${version}";
sha256 = "1lanr2y9rchl0xmycsyl0bhnh9mrmr5dj46pglw4lykz4rxslzcx";
};
buildInputs = [ graphicsmagick ffmpeg libexif libjpeg openslide zlib ];
nativeBuildInputs = [ cmake pkg-config ];
cmakeFlags = [
"-DTIMG_VERSION_FROM_GIT=Off"
"-DWITH_VIDEO_DECODING=On"
"-DWITH_VIDEO_DEVICE=On"
"-DWITH_OPENSLIDE_SUPPORT=On"
];
meta = with lib; {
homepage = "https://timg.sh/";
description = "A terminal image and video viewer";
license = licenses.gpl2Only;
platforms = platforms.unix;
maintainers = with maintainers; [ hzeller ];
};
}