nixpkgs/pkgs/development/tools/lightningcss/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
750 B
Nix
Raw Normal View History

2022-09-11 08:40:23 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
}:
rustPlatform.buildRustPackage rec {
pname = "lightningcss";
2022-09-21 22:26:57 +00:00
version = "1.16.0";
2022-09-11 08:40:23 +00:00
src = fetchFromGitHub {
owner = "parcel-bundler";
repo = "lightningcss";
rev = "v${version}";
2022-09-21 22:26:57 +00:00
sha256 = "sha256-ze8+/34KeSQi2ftcpJYjF/EEFKYxkYijkpf+5eTo0Nk=";
2022-09-11 08:40:23 +00:00
};
2022-09-21 22:26:57 +00:00
cargoSha256 = "sha256-4lJi1jCJoJdOz+NrlXS4O59rSq9Mz4e4O3zFNE/v+dE=";
2022-09-11 08:40:23 +00: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 ];
};
}