Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
40 lines
986 B
Nix
40 lines
986 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
makeBinaryWrapper,
|
|
imagemagick,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "tiv";
|
|
version = "1.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stefanhaustein";
|
|
repo = "TerminalImageViewer";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-xuJpl/tGWlyo8aKKy0yYzGladLs3ayKcRCodDNyZI9w=";
|
|
};
|
|
|
|
sourceRoot = "${finalAttrs.src.name}/src";
|
|
|
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
|
|
|
makeFlags = [ "prefix=${placeholder "out"}" ];
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/tiv \
|
|
--prefix PATH : ${lib.makeBinPath [ imagemagick ]}
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/stefanhaustein/TerminalImageViewer";
|
|
description = "Small C++ program to display images in a (modern) terminal using RGB ANSI codes and unicode block graphics characters";
|
|
mainProgram = "tiv";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ magnetophon ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
})
|