depot/third_party/nixpkgs/pkgs/tools/graphics/viu/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

34 lines
835 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, libsixel
, withSixel ? false
}:
rustPlatform.buildRustPackage rec {
pname = "viu";
version = "1.5.0";
src = fetchFromGitHub {
owner = "atanunq";
repo = "viu";
rev = "v${version}";
sha256 = "sha256-GJBJNtcCDO777NdxLBVj5Uc4PSJq3CE785eGKCPWt0I=";
};
# tests need an interactive terminal
doCheck = false;
cargoHash = "sha256-284ptMBVF4q57wTiCuTuYUiYMYItKf4Tyf6AtY0fqDk=";
buildFeatures = lib.optional withSixel "sixel";
buildInputs = lib.optional withSixel libsixel;
meta = with lib; {
description = "Command-line application to view images from the terminal written in Rust";
homepage = "https://github.com/atanunq/viu";
license = licenses.mit;
maintainers = with maintainers; [ chuangzhu sigmanificient ];
mainProgram = "viu";
};
}