at 23.05-pre 35 lines 997 B view raw
1{ lib, rustPlatform, fetchFromGitHub, installShellFiles, nasm }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "sic-image-cli"; 5 version = "0.20.0"; 6 7 src = fetchFromGitHub { 8 owner = "foresterre"; 9 repo = "sic"; 10 rev = "v${version}"; 11 sha256 = "sha256-KoDX/d457dTHsmz8VTPhfF2MiB5vZzLFKG46/L351SQ="; 12 }; 13 14 cargoSha256 = "sha256-sKEZhJivLbos0KLzPCEnGgTCgbyWSIOvHMhoC1IaJRo="; 15 16 nativeBuildInputs = [ installShellFiles nasm ]; 17 18 postBuild = '' 19 cargo run --example gen_completions 20 ''; 21 22 postInstall = '' 23 installShellCompletion sic.{bash,fish} 24 installShellCompletion --zsh _sic 25 ''; 26 27 meta = with lib; { 28 description = "Accessible image processing and conversion from the terminal"; 29 homepage = "https://github.com/foresterre/sic-image-cli"; 30 changelog = "https://github.com/foresterre/sic/blob/v${version}/CHANGELOG.md"; 31 license = with licenses; [ asl20 /* or */ mit ]; 32 maintainers = with maintainers; [ figsoda ]; 33 mainProgram = "sic"; 34 }; 35}