8 stdenv.mkDerivation rec {
12 src = fetchFromGitHub {
13 owner = "stefanhaustein";
14 repo = "TerminalImageViewer";
16 sha256 = "sha256-mCgybL4af19zqECN1pBV+WnxMq2ZtlK5GDTQO3u9CK0=";
19 nativeBuildInputs = [ makeWrapper ];
21 buildInputs = [ imagemagick ];
23 makeFlags = [ "prefix=$(out)" ];
25 preConfigure = "cd src/main/cpp";
28 wrapProgram $out/bin/tiv \
29 --prefix PATH : ${lib.makeBinPath [ imagemagick ]}
33 homepage = "https://github.com/stefanhaustein/TerminalImageViewer";
34 description = "Small C++ program to display images in a (modern) terminal using RGB ANSI codes and unicode block graphics characters";
36 license = licenses.asl20;
37 maintainers = with maintainers; [ magnetophon ];
38 platforms = [ "x86_64-linux" ];