a66bca1520
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
42 lines
989 B
Nix
42 lines
989 B
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "lightningcss";
|
|
version = "1.17.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "parcel-bundler";
|
|
repo = "lightningcss";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-sQXkKTzyzyyCpqoJPKfBd0CUbaKvNjbzTmdBo/RlBcs=";
|
|
};
|
|
|
|
cargoHash = "sha256-Vtsrjks3rdzTPBAtnYWWfMD4Vany9ErTubqPtuyVqR4=";
|
|
|
|
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 ];
|
|
# never built on aarch64-linux since first introduction in nixpkgs
|
|
broken = stdenv.isLinux && stdenv.isAarch64;
|
|
};
|
|
}
|