depot/third_party/nixpkgs/pkgs/development/tools/lightningcss/default.nix
Default email 7d542a9f98 Project import generated by Copybara.
GitOrigin-RevId: b72b8b94cf0c012b0252a9100a636cad69696666
2022-12-02 08:20:57 +00:00

32 lines
750 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
}:
rustPlatform.buildRustPackage rec {
pname = "lightningcss";
version = "1.17.0";
src = fetchFromGitHub {
owner = "parcel-bundler";
repo = "lightningcss";
rev = "v${version}";
sha256 = "sha256-N99e3paDwsl8lerijmq2srEdKaf3oJ1FJx6RUDQbXZg=";
};
cargoSha256 = "sha256-AkAOYq8VTtKMSqH4WDq48jepc58blkCQPB4EeppuUkk=";
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 ];
};
}