Skip to content

Commit 5af750a

Browse files
committed
lightningcss: 1.24.0 -> 1.24.1
Additionally patch ./napi/Cargo.toml to allow building lightningcss-napi parcel-bundler/lightningcss#713 parcel-bundler/lightningcss#702
1 parent 8c3463d commit 5af750a

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
diff --git a/napi/Cargo.toml b/napi/Cargo.toml
2+
index 3360a9c..86d6ba5 100644
3+
--- a/napi/Cargo.toml
4+
+++ b/napi/Cargo.toml
5+
@@ -10,7 +10,7 @@ edition = "2021"
6+
[features]
7+
default = []
8+
visitor = ["lightningcss/visitor"]
9+
-bundler = ["dep:crossbeam-channel", "dep:rayon"]
10+
+bundler = ["dep:crossbeam-channel", "rayon"]
11+
12+
[dependencies]
13+
serde = { version = "1.0.123", features = ["derive"] }
14+
--
15+
2.44.0
16+

pkgs/by-name/li/lightningcss/package.nix

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,23 @@
66

77
rustPlatform.buildRustPackage rec {
88
pname = "lightningcss";
9-
version = "1.24.0";
9+
version = "1.24.1";
1010

1111
src = fetchFromGitHub {
1212
owner = "parcel-bundler";
1313
repo = "lightningcss";
1414
rev = "refs/tags/v${version}";
15-
hash = "sha256-Ai6zvLR5w2AarjZIWMPoDsU1Dr5kvREgL6oyg6TF+TU=";
15+
hash = "sha256-HRuL7zwpN2e51+/Ltvif+eh+WBss/FtHCOlJfa/eVdE=";
1616
};
1717

18-
cargoHash = "sha256-HHuj7uAqipPtbjkOsxxMq+JWXww2vUDTNGgnHd3UY3o=";
18+
cargoHash = "sha256-HavdTNaLTGctePa890dy/jGlXZXXZu1QFeFJOpjOiME=";
19+
20+
patches = [
21+
# Backport fix for build error for lightningcss-napi
22+
# see https://github.com/parcel-bundler/lightningcss/pull/713
23+
# FIXME: remove when merged upstream
24+
./0001-napi-fix-build-error-in-cargo-auditable.patch
25+
];
1926

2027
buildFeatures = [
2128
"cli"

0 commit comments

Comments
 (0)