biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / graphics / sic-image-cli / default.nix
blob42dae849fc9fca4f03709714a904261a45238ae6
1 { lib, rustPlatform, fetchFromGitHub, installShellFiles, nasm }:
3 rustPlatform.buildRustPackage rec {
4   pname = "sic-image-cli";
5   version = "0.22.4";
7   src = fetchFromGitHub {
8     owner = "foresterre";
9     repo = "sic";
10     rev = "v${version}";
11     hash = "sha256-PFbHHO3m4mnV5s8DVev/iao9sC3FYht0whTHYzO25Yo=";
12   };
14   cargoHash = "sha256-Pw5PJ0xQCLfPaVEzsfqeHJ0E3miDwlj+71J98KRrYDs=";
16   nativeBuildInputs = [ installShellFiles nasm ];
18   postBuild = ''
19     cargo run --example gen_completions
20   '';
22   postInstall = ''
23     installShellCompletion sic.{bash,fish}
24     installShellCompletion --zsh _sic
25   '';
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   };