9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
42 lines
984 B
Nix
42 lines
984 B
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "lightningcss";
|
|
version = "1.21.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "parcel-bundler";
|
|
repo = "lightningcss";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "PEYrXykSdmLKhbhDgQNCQvp9wWos86WjWGZk3V84pew=";
|
|
};
|
|
|
|
cargoHash = "sha256-iCMG5Vfewotb5C0Gwtz/Py9B1hD28ssSy7C5ZiicFbU=";
|
|
|
|
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;
|
|
};
|
|
}
|