nixpkgs/pkgs/tools/graphics/timg/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

65 lines
1.1 KiB
Nix

{ cmake
, fetchFromGitHub
, ffmpeg
, graphicsmagick
, lib
, libdeflate
, libexif
, libjpeg
, libsixel
, openslide
, poppler
, librsvg
, cairo
, pkg-config
, stb
, qoi
, stdenv
}:
stdenv.mkDerivation (finalAttrs: {
pname = "timg";
version = "1.6.0";
src = fetchFromGitHub {
owner = "hzeller";
repo = "timg";
rev = "v${finalAttrs.version}";
hash = "sha256-rTqToWgCPQeRYnMUmhPd/lJPX6L9PstFs1NczyecaB0=";
};
buildInputs = [
ffmpeg
graphicsmagick
libdeflate
libexif
libjpeg
libsixel
openslide
poppler
librsvg
cairo
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 = "Terminal image and video viewer";
homepage = "https://timg.sh/";
license = lib.licenses.gpl2Only;
mainProgram = "timg";
maintainers = with lib.maintainers; [ hzeller ];
platforms = lib.platforms.unix;
};
})