depot/third_party/nixpkgs/pkgs/by-name/li/lightningcss/package.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

43 lines
1,023 B
Nix

{ 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;
};
}