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 {
|
||||
pname = "viu";
|
||||
|
@ -16,10 +21,13 @@ rustPlatform.buildRustPackage rec {
|
|||
|
||||
cargoSha256 = "sha256-ildtjaYGbrQacJOdGDVwFv+kod+vZHqukWN6ARtJqI4=";
|
||||
|
||||
buildFeatures = lib.optional withSixel "sixel";
|
||||
buildInputs = lib.optional withSixel libsixel;
|
||||
|
||||
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;
|
||||
maintainers = with maintainers; [ ];
|
||||
maintainers = with maintainers; [ chuangzhu ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue