diff options
author | Stefan Frijters <sfrijters@gmail.com> | 2023-03-21 16:12:48 +0100 |
---|---|---|
committer | Stefan Frijters <sfrijters@gmail.com> | 2023-03-21 16:14:52 +0100 |
commit | fbda432ee5668d9d9facfc94e692c514fbd63dd5 (patch) | |
tree | 4384c790651b6854f6bb92f175381ac3e8f1c43e /pkgs | |
parent | 32aa2eda4ee4e35691f222dad5c025904e4f7662 (diff) |
tiv: add imagemagick to path
Required for e.g. jpg and png support, c.f. https://github.com/stefanhaustein/TerminalImageViewer/issues/56
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/misc/tiv/default.nix | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/pkgs/applications/misc/tiv/default.nix b/pkgs/applications/misc/tiv/default.nix index 3a46d2db9be8e..30117180b74cb 100644 --- a/pkgs/applications/misc/tiv/default.nix +++ b/pkgs/applications/misc/tiv/default.nix @@ -1,4 +1,9 @@ -{ lib, stdenv, fetchFromGitHub, imagemagick }: +{ lib +, stdenv +, fetchFromGitHub +, makeWrapper +, imagemagick +}: stdenv.mkDerivation rec { pname = "tiv"; @@ -11,12 +16,19 @@ stdenv.mkDerivation rec { sha256 = "sha256-mCgybL4af19zqECN1pBV+WnxMq2ZtlK5GDTQO3u9CK0="; }; + nativeBuildInputs = [ makeWrapper ]; + buildInputs = [ imagemagick ]; makeFlags = [ "prefix=$(out)" ]; preConfigure = "cd src/main/cpp"; + postFixup = '' + wrapProgram $out/bin/tiv \ + --prefix PATH : ${lib.makeBinPath [ imagemagick ]} + ''; + meta = with lib; { 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"; |