Skip to content

Commit

Permalink
lightningcss: 1.24.0 -> 1.24.1
Browse files Browse the repository at this point in the history
Additionally patch ./napi/Cargo.toml to allow building lightningcss-napi
parcel-bundler/lightningcss#713
parcel-bundler/lightningcss#702
  • Loading branch information
JohnRTitor committed Apr 6, 2024
1 parent 8c3463d commit 5af750a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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

13 changes: 10 additions & 3 deletions pkgs/by-name/li/lightningcss/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5af750a

Please sign in to comment.