mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +03:00
flaca: 3.2.3 -> 3.3.2
This commit is contained in:
parent
16cdd6bc56
commit
4d3ac9fe9d
1 changed files with 20 additions and 25 deletions
|
@ -3,46 +3,41 @@
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
fetchurl,
|
fetchurl,
|
||||||
runCommand,
|
|
||||||
lndir,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
pname = "flaca";
|
pname = "flaca";
|
||||||
version = "3.2.3";
|
version = "3.3.2";
|
||||||
|
|
||||||
src =
|
lockFile = fetchurl {
|
||||||
let
|
url = "https://github.com/Blobfolio/flaca/releases/download/v${finalAttrs.version}/Cargo.lock";
|
||||||
source = fetchFromGitHub {
|
hash = "sha256-AFEuJQAz+cXUuyLefqsV2VyytJ+sfLrJQSArITqQZZU=";
|
||||||
owner = "Blobfolio";
|
};
|
||||||
repo = "flaca";
|
|
||||||
rev = "v${version}";
|
src = fetchFromGitHub {
|
||||||
hash = "sha256-GpxOTu7yjJ9IFMKVkgjLeKGNEUiKw0ZeWQorfhaOTsg=";
|
owner = "Blobfolio";
|
||||||
};
|
repo = "flaca";
|
||||||
lockFile = fetchurl {
|
tag = "v${finalAttrs.version}";
|
||||||
url = "https://github.com/Blobfolio/flaca/releases/download/v${version}/Cargo.lock";
|
hash = "sha256-sxBP3L9Abk3/NYkE1UeFFulGEhDe4wKqS71wrX6mA9c=";
|
||||||
hash = "sha256-SaqQ4U8JXTFlp1EqkNZ6VV8KyPXHYtEycfZn/68SeHY=";
|
};
|
||||||
};
|
|
||||||
in
|
postUnpack = ''
|
||||||
runCommand "source-with-lock" { nativeBuildInputs = [ lndir ]; } ''
|
ln -s ${finalAttrs.lockFile} ${finalAttrs.src.name}/Cargo.lock
|
||||||
mkdir -p $out
|
'';
|
||||||
ln -s ${lockFile} $out/Cargo.lock
|
|
||||||
lndir -silent ${source} $out
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [ rustPlatform.bindgenHook ];
|
nativeBuildInputs = [ rustPlatform.bindgenHook ];
|
||||||
|
|
||||||
useFetchCargoVendor = true;
|
useFetchCargoVendor = true;
|
||||||
cargoHash = "sha256-MdPPLv0836rVxVrl8PXMDufHdTtmBBhJ/EuG4qcK3Kk=";
|
cargoHash = "sha256-i4eYyS3s7q/1PaqwawpWeDbUHUGEvIfN65xfvpLkOpY=";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "CLI tool to losslessly compress JPEG and PNG images";
|
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";
|
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";
|
homepage = "https://github.com/Blobfolio/flaca";
|
||||||
changelog = "https://github.com/Blobfolio/flaca/releases/tag/v${version}";
|
changelog = "https://github.com/Blobfolio/flaca/releases/tag/v${finalAttrs.version}";
|
||||||
maintainers = with maintainers; [ zzzsy ];
|
maintainers = with maintainers; [ zzzsy ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
license = licenses.wtfpl;
|
license = licenses.wtfpl;
|
||||||
mainProgram = "flaca";
|
mainProgram = "flaca";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue