diff --git a/pkgs/tools/graphics/viu/default.nix b/pkgs/tools/graphics/viu/default.nix index 34bec2159095..ade2dd7331bf 100644 --- a/pkgs/tools/graphics/viu/default.nix +++ b/pkgs/tools/graphics/viu/default.nix @@ -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 ]; }; }