2023-07-15 17:15:38 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "flaca";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "2.3.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Blobfolio";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-gK9nKvhrqGQ3yDAfnqDF2K1g6JK3CYz0kSpTLqfGTzc=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# upstream does not provide a Cargo.lock
|
|
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
|
|
postPatch = ''
|
|
|
|
ln -s ${./Cargo.lock} Cargo.lock
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A 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";
|
|
|
|
maintainers = with maintainers; [ zzzsy ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.wtfpl;
|
|
|
|
};
|
|
|
|
}
|