nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 38 lines 858 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 libsixel, 6 withSixel ? false, 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "viu"; 11 version = "1.5.1"; 12 13 src = fetchFromGitHub { 14 owner = "atanunq"; 15 repo = "viu"; 16 rev = "v${version}"; 17 sha256 = "sha256-sx8BH01vTFsAEnMKTcVZTDMHiVi230BVVGRexoBNxeo="; 18 }; 19 20 # tests need an interactive terminal 21 doCheck = false; 22 23 cargoHash = "sha256-a9Z6/+/fMyJ2pFiKPexuiM5DAbk+Tcq3D9rDAyUwC84="; 24 25 buildFeatures = lib.optional withSixel "sixel"; 26 buildInputs = lib.optional withSixel libsixel; 27 28 meta = with lib; { 29 description = "Command-line application to view images from the terminal written in Rust"; 30 homepage = "https://github.com/atanunq/viu"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ 33 chuangzhu 34 sigmanificient 35 ]; 36 mainProgram = "viu"; 37 }; 38}