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