Merge pull request #302174 from JohnRTitor/lightningcss

lightningcss: 1.24.0 -> 1.24.1
This commit is contained in:
Jörg Thalheim 2024-04-10 08:59:22 +02:00 committed by GitHub
commit 042af1d9f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 26 additions and 3 deletions

View File

@ -0,0 +1,16 @@
diff --git a/napi/Cargo.toml b/napi/Cargo.toml
index 3360a9c..86d6ba5 100644
--- a/napi/Cargo.toml
+++ b/napi/Cargo.toml
@@ -10,7 +10,7 @@ edition = "2021"
[features]
default = []
visitor = ["lightningcss/visitor"]
-bundler = ["dep:crossbeam-channel", "dep:rayon"]
+bundler = ["dep:crossbeam-channel", "rayon"]
[dependencies]
serde = { version = "1.0.123", features = ["derive"] }
--
2.44.0

View File

@ -6,16 +6,23 @@
rustPlatform.buildRustPackage rec {
pname = "lightningcss";
version = "1.24.0";
version = "1.24.1";
src = fetchFromGitHub {
owner = "parcel-bundler";
repo = "lightningcss";
rev = "refs/tags/v${version}";
hash = "sha256-Ai6zvLR5w2AarjZIWMPoDsU1Dr5kvREgL6oyg6TF+TU=";
hash = "sha256-HRuL7zwpN2e51+/Ltvif+eh+WBss/FtHCOlJfa/eVdE=";
};
cargoHash = "sha256-HHuj7uAqipPtbjkOsxxMq+JWXww2vUDTNGgnHd3UY3o=";
cargoHash = "sha256-HavdTNaLTGctePa890dy/jGlXZXXZu1QFeFJOpjOiME=";
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"