nixpkgs/pkgs/applications/misc/tiv/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
767 B
Nix
Raw Normal View History

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