forked from mirrors/nixpkgs
viu: add withSixel option; adopt
This commit is contained in:
parent
e899e67e91
commit
c6cae19d19
|
@ -1,4 +1,9 @@
|
||||||
{ lib, rustPlatform, fetchFromGitHub }:
|
{ lib
|
||||||
|
, rustPlatform
|
||||||
|
, fetchFromGitHub
|
||||||
|
, libsixel
|
||||||
|
, withSixel ? false
|
||||||
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "viu";
|
pname = "viu";
|
||||||
|
@ -16,10 +21,13 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
cargoSha256 = "sha256-ildtjaYGbrQacJOdGDVwFv+kod+vZHqukWN6ARtJqI4=";
|
cargoSha256 = "sha256-ildtjaYGbrQacJOdGDVwFv+kod+vZHqukWN6ARtJqI4=";
|
||||||
|
|
||||||
|
buildFeatures = lib.optional withSixel "sixel";
|
||||||
|
buildInputs = lib.optional withSixel libsixel;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A command-line application to view images from the terminal written in Rust";
|
description = "A command-line application to view images from the terminal written in Rust";
|
||||||
homepage = "https://github.com/atanunq/viu";
|
homepage = "https://github.com/atanunq/viu";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ chuangzhu ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue