at 24.05-pre 35 lines 983 B view raw
1{ lib, rustPlatform, fetchFromGitHub, installShellFiles, nasm }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "sic-image-cli"; 5 version = "0.22.4"; 6 7 src = fetchFromGitHub { 8 owner = "foresterre"; 9 repo = "sic"; 10 rev = "v${version}"; 11 hash = "sha256-PFbHHO3m4mnV5s8DVev/iao9sC3FYht0whTHYzO25Yo="; 12 }; 13 14 cargoHash = "sha256-Pw5PJ0xQCLfPaVEzsfqeHJ0E3miDwlj+71J98KRrYDs="; 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"; 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}