2021-09-21 01:15:29 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, installShellFiles, nasm }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "sic-image-cli";
|
2023-01-21 19:16:06 +00:00
|
|
|
version = "0.21.1";
|
2021-09-21 01:15:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "foresterre";
|
|
|
|
repo = "sic";
|
|
|
|
rev = "v${version}";
|
2023-01-21 19:16:06 +00:00
|
|
|
sha256 = "sha256-JSBvHbqGTwjiKRPuomXtFLgu77ZB4bOlV/JgzIxaWC0=";
|
2021-09-21 01:15:29 +00:00
|
|
|
};
|
|
|
|
|
2023-01-21 19:16:06 +00:00
|
|
|
cargoSha256 = "sha256-HWnYBLxiz7Kd5rmgTFeIG8XtiRzhRKuo/vunJRPLdWU=";
|
2021-09-21 01:15:29 +00:00
|
|
|
|
|
|
|
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";
|
2022-12-12 21:59:49 +00:00
|
|
|
homepage = "https://github.com/foresterre/sic";
|
2021-09-21 01:15:29 +00:00
|
|
|
changelog = "https://github.com/foresterre/sic/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
mainProgram = "sic";
|
|
|
|
};
|
|
|
|
}
|