forked from mirrors/nixpkgs
timg: init at v1.4.0
Timg is an image and video viewer for the terminal, useful to look at images without leaving the comfort of the shell or if remotely logged in to a shell. https://timg.sh/ I am the maintainer of timg. Signed-off-by: Henner Zeller <h.zeller@acm.org>
This commit is contained in:
parent
02085112e1
commit
e53421e195
33
pkgs/tools/graphics/timg/default.nix
Normal file
33
pkgs/tools/graphics/timg/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, graphicsmagick, libjpeg
|
||||
, ffmpeg, zlib, libexif }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "timg";
|
||||
version = "1.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hzeller";
|
||||
repo = "timg";
|
||||
rev = "v${version}";
|
||||
sha256 = "10qhjfkbazncmj07y0a6cpmi7ki0l10qzpvi2zh8369yycqqxr8y";
|
||||
};
|
||||
|
||||
buildInputs = [ graphicsmagick ffmpeg libexif libjpeg zlib ];
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DTIMG_VERSION_FROM_GIT=Off"
|
||||
"-DWITH_VIDEO_DECODING=On"
|
||||
"-DWITH_VIDEO_DEVICE=On"
|
||||
"-DWITH_OPENSLIDE_SUPPORT=Off" # https://openslide.org/ lib not yet in nix
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://timg.sh/";
|
||||
description = "A terminal image and video viewer";
|
||||
license = licenses.gpl2Only;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ hzeller ];
|
||||
};
|
||||
}
|
|
@ -26089,6 +26089,8 @@ in
|
|||
|
||||
timewarrior = callPackage ../applications/misc/timewarrior { };
|
||||
|
||||
timg = callPackage ../tools/graphics/timg { };
|
||||
|
||||
timidity = callPackage ../tools/misc/timidity { };
|
||||
|
||||
tint2 = callPackage ../applications/misc/tint2 { };
|
||||
|
|
Loading…
Reference in a new issue