nixpkgs/pkgs/tools/graphics/viu/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

35 lines
822 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, libsixel
, withSixel ? false
}:
rustPlatform.buildRustPackage rec {
pname = "viu";
version = "1.4.0";
src = fetchFromGitHub {
owner = "atanunq";
repo = "viu";
rev = "v${version}";
sha256 = "sha256-lAuIl25368Gv717a8p2So1o1VMDJJAOlDdqfItYizo4=";
};
# tests need an interactive terminal
doCheck = false;
cargoSha256 = "sha256-ildtjaYGbrQacJOdGDVwFv+kod+vZHqukWN6ARtJqI4=";
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 ];
mainProgram = "viu";
};
}