Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
1014 B
Nix
48 lines
1014 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
nasm,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "sic-image-cli";
|
|
version = "0.22.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "foresterre";
|
|
repo = "sic";
|
|
rev = "v${version}";
|
|
hash = "sha256-PFbHHO3m4mnV5s8DVev/iao9sC3FYht0whTHYzO25Yo=";
|
|
};
|
|
|
|
cargoHash = "sha256-HL/KCC8Y42OFL1LXoewmH1Bxp6FICuDjkTnK5DE94Ms=";
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
nasm
|
|
];
|
|
|
|
postBuild = ''
|
|
cargo run --example gen_completions
|
|
'';
|
|
|
|
postInstall = ''
|
|
installShellCompletion sic.{bash,fish}
|
|
installShellCompletion --zsh _sic
|
|
'';
|
|
|
|
meta = {
|
|
description = "Accessible image processing and conversion from the terminal";
|
|
homepage = "https://github.com/foresterre/sic";
|
|
changelog = "https://github.com/foresterre/sic/blob/v${version}/CHANGELOG.md";
|
|
license = with lib.licenses; [
|
|
asl20 # or
|
|
mit
|
|
];
|
|
maintainers = with lib.maintainers; [ figsoda ];
|
|
mainProgram = "sic";
|
|
};
|
|
}
|