nixpkgs/pkgs/tools/graphics/viu/default.nix

26 lines
745 B
Nix
Raw Normal View History

2019-05-04 01:35:55 +01:00
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "viu";
2020-04-08 22:24:57 +01:00
version = "1.0";
2019-05-04 01:35:55 +01:00
src = fetchFromGitHub {
owner = "atanunq";
repo = "viu";
rev = "v${version}";
2020-04-08 22:24:57 +01:00
sha256 = "1ivhm6js0ylnxwp84jmm2vmnl4iy1cwr3m9imx7lmcl0i3c8b9if";
2019-05-04 01:35:55 +01:00
};
2020-04-08 22:24:57 +01:00
# tests are failing, reported at upstream: https://github.com/atanunq/viu/issues/40
doCheck = false;
2019-05-04 01:35:55 +01:00
2020-04-08 22:24:57 +01:00
cargoSha256 = "15zdnr95a363w4rddv1fbz796m01430gzly5p953m23g2mbxdmp0";
2019-05-04 01:35:55 +01:00
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; [ petabyteboy ];
platforms = platforms.all;
};
}