mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 11:03:57 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
65 lines
1.1 KiB
Nix
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;
|
|
};
|
|
})
|