Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 installShellFiles, 6 nasm, 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "sic-image-cli"; 11 version = "0.22.4"; 12 13 src = fetchFromGitHub { 14 owner = "foresterre"; 15 repo = "sic"; 16 rev = "v${version}"; 17 hash = "sha256-PFbHHO3m4mnV5s8DVev/iao9sC3FYht0whTHYzO25Yo="; 18 }; 19 20 cargoHash = "sha256-HL/KCC8Y42OFL1LXoewmH1Bxp6FICuDjkTnK5DE94Ms="; 21 22 nativeBuildInputs = [ 23 installShellFiles 24 nasm 25 ]; 26 27 postBuild = '' 28 cargo run --example gen_completions 29 ''; 30 31 postInstall = '' 32 installShellCompletion sic.{bash,fish} 33 installShellCompletion --zsh _sic 34 ''; 35 36 meta = { 37 description = "Accessible image processing and conversion from the terminal"; 38 homepage = "https://github.com/foresterre/sic"; 39 changelog = "https://github.com/foresterre/sic/blob/v${version}/CHANGELOG.md"; 40 license = with lib.licenses; [ 41 asl20 # or 42 mit 43 ]; 44 maintainers = with lib.maintainers; [ figsoda ]; 45 mainProgram = "sic"; 46 }; 47}