sic-image-cli: init at 0.19.0
This commit is contained in:
parent
3fffe2d33c
commit
e10b10af39
2 changed files with 37 additions and 0 deletions
35
pkgs/tools/graphics/sic-image-cli/default.nix
Normal file
35
pkgs/tools/graphics/sic-image-cli/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ lib, rustPlatform, fetchFromGitHub, installShellFiles, nasm }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "sic-image-cli";
|
||||
version = "0.19.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "foresterre";
|
||||
repo = "sic";
|
||||
rev = "v${version}";
|
||||
sha256 = "11km8ngndmzp6sxyfnbll80nigi790s353v7j31jvqcgyn9gjdq9";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-mHfQ36Xo37VRRq0y0xvUYy0MAlrfnOfMy1t3IZFdrE8=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles nasm ];
|
||||
|
||||
postBuild = ''
|
||||
cargo run --example gen_completions
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion sic.{bash,fish}
|
||||
installShellCompletion --zsh _sic
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Accessible image processing and conversion from the terminal";
|
||||
homepage = "https://github.com/foresterre/sic-image-cli";
|
||||
changelog = "https://github.com/foresterre/sic/blob/v${version}/CHANGELOG.md";
|
||||
license = with licenses; [ asl20 /* or */ mit ];
|
||||
maintainers = with maintainers; [ figsoda ];
|
||||
mainProgram = "sic";
|
||||
};
|
||||
}
|
|
@ -27154,6 +27154,8 @@ with pkgs;
|
|||
|
||||
shutter = callPackage ../applications/graphics/shutter { };
|
||||
|
||||
sic-image-cli = callPackage ../tools/graphics/sic-image-cli { };
|
||||
|
||||
simple-scan = gnome.simple-scan;
|
||||
|
||||
siproxd = callPackage ../applications/networking/siproxd { };
|
||||
|
|
Loading…
Reference in a new issue