depot/third_party/nixpkgs/pkgs/development/tools/lightningcss/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

32 lines
750 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
}:
rustPlatform.buildRustPackage rec {
pname = "lightningcss";
version = "1.16.1";
src = fetchFromGitHub {
owner = "parcel-bundler";
repo = "lightningcss";
rev = "v${version}";
sha256 = "sha256-Mr3sqPrP9fIuQrE+XtDe5lu8dGwYNtKElfxFvLIllb4=";
};
cargoSha256 = "sha256-mF7bUcy5np/odQvhz0PEsWWgWRL2k8X0VaO9y1pDtzE=";
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 ];
};
}