2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, imagemagick }:
|
2020-10-15 11:52:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tiv";
|
2022-02-13 10:29:53 +00:00
|
|
|
version = "1.1.1";
|
2020-10-15 11:52:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stefanhaustein";
|
|
|
|
repo = "TerminalImageViewer";
|
|
|
|
rev = "v${version}";
|
2022-02-13 10:29:53 +00:00
|
|
|
sha256 = "sha256-mCgybL4af19zqECN1pBV+WnxMq2ZtlK5GDTQO3u9CK0=";
|
2020-10-15 11:52:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ imagemagick ];
|
|
|
|
|
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
|
|
|
|
|
|
|
preConfigure = "cd src/main/cpp";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-15 11:52:52 +00:00
|
|
|
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";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ magnetophon ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|