mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
1e1bd362e5
Release notes: https://github.com/hzeller/timg/releases/tag/v1.5.3
59 lines
1.0 KiB
Nix
59 lines
1.0 KiB
Nix
{ cmake
|
|
, fetchFromGitHub
|
|
, ffmpeg
|
|
, graphicsmagick
|
|
, lib
|
|
, libdeflate
|
|
, libexif
|
|
, libjpeg
|
|
, libsixel
|
|
, openslide
|
|
, pkg-config
|
|
, stb
|
|
, qoi
|
|
, stdenv
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "timg";
|
|
version = "1.5.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hzeller";
|
|
repo = "timg";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-u52ipc3I57ldKXjmXqFuIXIYIrs5c9TSvgs1HfIu44U=";
|
|
};
|
|
|
|
buildInputs = [
|
|
ffmpeg
|
|
graphicsmagick
|
|
libdeflate
|
|
libexif
|
|
libjpeg
|
|
libsixel
|
|
openslide
|
|
qoi.dev
|
|
stb
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
cmakeFlags = [
|
|
"-DTIMG_VERSION_FROM_GIT=Off"
|
|
"-DWITH_VIDEO_DECODING=On"
|
|
"-DWITH_VIDEO_DEVICE=On"
|
|
"-DWITH_OPENSLIDE_SUPPORT=On"
|
|
"-DWITH_LIBSIXEL=On"
|
|
];
|
|
|
|
meta = {
|
|
description = "A terminal image and video viewer";
|
|
homepage = "https://timg.sh/";
|
|
license = lib.licenses.gpl2Only;
|
|
mainProgram = "timg";
|
|
maintainers = with lib.maintainers; [ hzeller ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|