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

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

43 lines
984 B
Nix
Raw Normal View History

2022-09-11 08:40:23 +00:00
{ lib
2022-12-04 13:50:37 +00:00
, stdenv
2022-09-11 08:40:23 +00:00
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "lightningcss";
2023-09-18 10:26:04 +00:00
version = "1.22.0";
2022-09-11 08:40:23 +00:00
src = fetchFromGitHub {
owner = "parcel-bundler";
repo = "lightningcss";
2022-12-04 13:50:37 +00:00
rev = "refs/tags/v${version}";
2023-09-18 10:26:04 +00:00
sha256 = "K7whGWIukMrCqGaunHVuvr9k1EOTPSMb0x/A2JysVI0=";
2022-09-11 08:40:23 +00:00
};
2023-09-18 10:26:04 +00:00
cargoHash = "sha256-itwU6JIxDbem93KIpjWyKBiZhQP62D9h8ohIcMD14+0=";
2022-09-11 08:40:23 +00:00
2022-12-04 13:50:37 +00:00
buildFeatures = [
"cli"
];
2022-09-11 08:40:23 +00:00
2022-12-04 13:50:37 +00:00
cargoBuildFlags = [
"--lib"
"--bin=lightningcss"
];
2022-09-11 08:40:23 +00:00
2022-12-04 13:50:37 +00:00
cargoTestFlags = [
"--lib"
];
2022-09-11 08:40:23 +00:00
meta = with lib; {
description = "Extremely fast CSS parser, transformer, and minifier written in Rust";
homepage = "https://lightningcss.dev/";
2022-12-04 13:50:37 +00:00
changelog = "https://github.com/parcel-bundler/lightningcss/releases/tag/v${version}";
2022-09-11 08:40:23 +00:00
license = licenses.mpl20;
maintainers = with maintainers; [ toastal ];
# never built on aarch64-linux since first introduction in nixpkgs
broken = stdenv.isLinux && stdenv.isAarch64;
2022-09-11 08:40:23 +00:00
};
}