diff options
Diffstat (limited to 'nixpkgs/pkgs/by-name/li/lightningcss/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/li/lightningcss/package.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/li/lightningcss/package.nix b/nixpkgs/pkgs/by-name/li/lightningcss/package.nix new file mode 100644 index 000000000000..6388413bd43b --- /dev/null +++ b/nixpkgs/pkgs/by-name/li/lightningcss/package.nix @@ -0,0 +1,43 @@ +{ lib +, stdenv +, rustPlatform +, fetchFromGitHub +}: + +rustPlatform.buildRustPackage rec { + pname = "lightningcss"; + version = "1.24.0"; + + src = fetchFromGitHub { + owner = "parcel-bundler"; + repo = "lightningcss"; + rev = "refs/tags/v${version}"; + hash = "sha256-Ai6zvLR5w2AarjZIWMPoDsU1Dr5kvREgL6oyg6TF+TU="; + }; + + cargoHash = "sha256-HHuj7uAqipPtbjkOsxxMq+JWXww2vUDTNGgnHd3UY3o="; + + buildFeatures = [ + "cli" + ]; + + cargoBuildFlags = [ + "--lib" + "--bin=lightningcss" + ]; + + cargoTestFlags = [ + "--lib" + ]; + + meta = with lib; { + 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${version}"; + license = licenses.mpl20; + maintainers = with maintainers; [ toastal ]; + mainProgram = "lightningcss"; + # never built on aarch64-linux since first introduction in nixpkgs + broken = stdenv.isLinux && stdenv.isAarch64; + }; +} |