2022-09-11 10:40:23 +02:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "lightningcss";
|
2022-12-04 09:13:11 +01:00
|
|
|
version = "1.17.1";
|
2022-09-11 10:40:23 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "parcel-bundler";
|
|
|
|
repo = "lightningcss";
|
|
|
|
rev = "v${version}";
|
2022-12-04 09:13:11 +01:00
|
|
|
sha256 = "sha256-sQXkKTzyzyyCpqoJPKfBd0CUbaKvNjbzTmdBo/RlBcs=";
|
2022-09-11 10:40:23 +02:00
|
|
|
};
|
|
|
|
|
2022-12-04 09:13:11 +01:00
|
|
|
cargoSha256 = "sha256-Vtsrjks3rdzTPBAtnYWWfMD4Vany9ErTubqPtuyVqR4=";
|
2022-09-11 10:40:23 +02:00
|
|
|
|
|
|
|
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/";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ toastal ];
|
|
|
|
};
|
|
|
|
}
|