nixpkgs/pkgs/tools/graphics/viu/default.nix

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

34 lines
799 B
Nix
Raw Normal View History

2022-10-16 18:02:27 +01:00
{ lib
, rustPlatform
, fetchFromGitHub
, libsixel
, withSixel ? false
}:
2019-05-04 01:35:55 +01:00
rustPlatform.buildRustPackage rec {
pname = "viu";
2021-12-22 08:12:15 +00:00
version = "1.4.0";
2019-05-04 01:35:55 +01:00
src = fetchFromGitHub {
owner = "atanunq";
repo = "viu";
rev = "v${version}";
2021-12-22 08:12:15 +00:00
sha256 = "sha256-lAuIl25368Gv717a8p2So1o1VMDJJAOlDdqfItYizo4=";
2019-05-04 01:35:55 +01:00
};
2021-02-07 14:13:15 +00:00
# tests need an interactive terminal
2020-04-08 22:24:57 +01:00
doCheck = false;
2019-05-04 01:35:55 +01:00
2021-12-22 08:12:15 +00:00
cargoSha256 = "sha256-ildtjaYGbrQacJOdGDVwFv+kod+vZHqukWN6ARtJqI4=";
2019-05-04 01:35:55 +01:00
2022-10-16 18:02:27 +01:00
buildFeatures = lib.optional withSixel "sixel";
buildInputs = lib.optional withSixel libsixel;
2019-05-04 01:35:55 +01:00
meta = with lib; {
description = "A command-line application to view images from the terminal written in Rust";
homepage = "https://github.com/atanunq/viu";
license = licenses.mit;
2022-10-16 18:02:27 +01:00
maintainers = with maintainers; [ chuangzhu ];
2019-05-04 01:35:55 +01:00
};
}