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
43 lines
1.3 KiB
Nix
43 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
fetchurl,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "flaca";
|
|
version = "3.4.2";
|
|
|
|
lockFile = fetchurl {
|
|
url = "https://github.com/Blobfolio/flaca/releases/download/v${finalAttrs.version}/Cargo.lock";
|
|
hash = "sha256-6SpIqz/iLGVvOkwfiTcvf2EdlbVafQ+aHVc7taYLPDc=";
|
|
};
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Blobfolio";
|
|
repo = "flaca";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-9fD+nfSe0Rk06d+o3hnMH2lC6OAFa10gDNiDW57lSTg=";
|
|
};
|
|
|
|
postUnpack = ''
|
|
ln -s ${finalAttrs.lockFile} ${finalAttrs.src.name}/Cargo.lock
|
|
'';
|
|
|
|
nativeBuildInputs = [ rustPlatform.bindgenHook ];
|
|
|
|
cargoHash = "sha256-LVY1+Nvcy7WoJ7Bsf1rgrdTzLMRqpquDXD8X3X8jX20=";
|
|
|
|
meta = with lib; {
|
|
description = "CLI tool to losslessly compress JPEG and PNG images";
|
|
longDescription = "A CLI tool for x86-64 Linux machines that simplifies the task of maximally, losslessly compressing JPEG and PNG images for use in production web environments";
|
|
homepage = "https://github.com/Blobfolio/flaca";
|
|
changelog = "https://github.com/Blobfolio/flaca/releases/tag/v${finalAttrs.version}";
|
|
maintainers = with maintainers; [ zzzsy ];
|
|
platforms = platforms.linux;
|
|
license = licenses.wtfpl;
|
|
mainProgram = "flaca";
|
|
};
|
|
})
|