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
57 lines
1.3 KiB
Nix
57 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "lightningcss";
|
|
version = "1.30.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "parcel-bundler";
|
|
repo = "lightningcss";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-AuMboSZ7fX6UhnPeXjpnBEDGkQdK1EMKSUpw3TPZxRk=";
|
|
};
|
|
|
|
cargoHash = "sha256-7oyDnT81G47SaceJ5st+1P3a2fb9Dj5Eu2c0glw8YW4=";
|
|
|
|
patches = [
|
|
# Backport fix for build error for lightningcss-napi
|
|
# see https://github.com/parcel-bundler/lightningcss/pull/713
|
|
# FIXME: remove when merged upstream
|
|
./0001-napi-fix-build-error-in-cargo-auditable.patch
|
|
];
|
|
|
|
buildFeatures = [
|
|
"cli"
|
|
];
|
|
|
|
cargoBuildFlags = [
|
|
"--lib"
|
|
"--bin=lightningcss"
|
|
];
|
|
|
|
cargoTestFlags = [
|
|
"--lib"
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Extremely fast CSS parser, transformer, and minifier written in Rust";
|
|
homepage = "https://lightningcss.dev/";
|
|
changelog = "https://github.com/parcel-bundler/lightningcss/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.mpl20;
|
|
maintainers = with lib.maintainers; [
|
|
johnrtitor
|
|
toastal
|
|
];
|
|
mainProgram = "lightningcss";
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|