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

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

41 lines
869 B
Nix
Raw Normal View History

2022-09-11 10:40:23 +02:00
{ lib
2022-12-04 14:50:37 +01:00
, stdenv
2022-09-11 10:40:23 +02:00
, rustPlatform
, fetchFromGitHub
}:
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";
2022-12-04 14:50:37 +01:00
rev = "refs/tags/v${version}";
hash = "sha256-sQXkKTzyzyyCpqoJPKfBd0CUbaKvNjbzTmdBo/RlBcs=";
2022-09-11 10:40:23 +02:00
};
2022-12-04 14:50:37 +01:00
cargoHash = "sha256-Vtsrjks3rdzTPBAtnYWWfMD4Vany9ErTubqPtuyVqR4=";
2022-09-11 10:40:23 +02:00
2022-12-04 14:50:37 +01:00
buildFeatures = [
"cli"
];
2022-09-11 10:40:23 +02:00
2022-12-04 14:50:37 +01:00
cargoBuildFlags = [
"--lib"
"--bin=lightningcss"
];
2022-09-11 10:40:23 +02:00
2022-12-04 14:50:37 +01:00
cargoTestFlags = [
"--lib"
];
2022-09-11 10:40:23 +02:00
meta = with lib; {
description = "Extremely fast CSS parser, transformer, and minifier written in Rust";
homepage = "https://lightningcss.dev/";
2022-12-04 14:50:37 +01:00
changelog = "https://github.com/parcel-bundler/lightningcss/releases/tag/v${version}";
2022-09-11 10:40:23 +02:00
license = licenses.mpl20;
maintainers = with maintainers; [ toastal ];
};
}