nixpkgs/pkgs/by-name/li/lightningcss/package.nix

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

44 lines
1023 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";
2024-02-23 12:08:03 +00:00
version = "1.24.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}";
2024-02-23 12:08:03 +00:00
hash = "sha256-Ai6zvLR5w2AarjZIWMPoDsU1Dr5kvREgL6oyg6TF+TU=";
2022-09-11 08:40:23 +00:00
};
2024-02-23 12:08:03 +00:00
cargoHash = "sha256-HHuj7uAqipPtbjkOsxxMq+JWXww2vUDTNGgnHd3UY3o=";
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 ];
2023-09-18 10:41:45 +00:00
mainProgram = "lightningcss";
# never built on aarch64-linux since first introduction in nixpkgs
broken = stdenv.isLinux && stdenv.isAarch64;
2022-09-11 08:40:23 +00:00
};
}