3
0
Fork 0
forked from mirrors/nixpkgs

viu: add withSixel option; adopt

This commit is contained in:
Chuang Zhu 2022-10-17 01:02:27 +08:00
parent e899e67e91
commit c6cae19d19

View file

@ -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 ];
}; };
} }