biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / misc / tiv / default.nix
blob4bfb705ae8612ae33343c1b57fd8ce7cf5e93689
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , makeWrapper
5 , imagemagick
6 }:
8 stdenv.mkDerivation rec {
9   pname = "tiv";
10   version = "1.1.1";
12   src = fetchFromGitHub {
13     owner = "stefanhaustein";
14     repo = "TerminalImageViewer";
15     rev = "v${version}";
16     sha256 = "sha256-mCgybL4af19zqECN1pBV+WnxMq2ZtlK5GDTQO3u9CK0=";
17   };
19   nativeBuildInputs = [ makeWrapper ];
21   buildInputs = [ imagemagick ];
23   makeFlags = [ "prefix=$(out)" ];
25   preConfigure = "cd src/main/cpp";
27   postFixup = ''
28     wrapProgram $out/bin/tiv \
29       --prefix PATH : ${lib.makeBinPath [ imagemagick ]}
30   '';
32   meta = with lib; {
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";
35     mainProgram = "tiv";
36     license = licenses.asl20;
37     maintainers = with maintainers; [ magnetophon ];
38     platforms = [ "x86_64-linux" ];
39   };