2019-05-04 02:35:55 +02:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "viu";
|
2021-02-07 15:13:15 +01:00
|
|
|
version = "1.3.0";
|
2019-05-04 02:35:55 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "atanunq";
|
|
|
|
repo = "viu";
|
|
|
|
rev = "v${version}";
|
2021-02-07 15:13:15 +01:00
|
|
|
sha256 = "1n1qwlh1zinq5ngx04cvs69z8zr12yywr70vbrc946kbh4hx6pk9";
|
2019-05-04 02:35:55 +02:00
|
|
|
};
|
2021-02-07 15:13:15 +01:00
|
|
|
|
|
|
|
# tests need an interactive terminal
|
2020-04-08 23:24:57 +02:00
|
|
|
doCheck = false;
|
2019-05-04 02:35:55 +02:00
|
|
|
|
2021-02-07 15:13:15 +01:00
|
|
|
cargoSha256 = "0bdjfcyx2cwz68gcx0393h4ysccarfp02pvvp0a5xgkq11bad0r0";
|
2019-05-04 02:35:55 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|