mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-17 02:19:30 +03:00
8456dd1f76
Diff: https://github.com/web-infra-dev/oxc/compare/oxlint_v0.0.15...oxlint_v0.0.17 Changelog: https://github.com/web-infra-dev/oxc/releases/tag/oxlint_v0.0.17
40 lines
979 B
Nix
40 lines
979 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, rust-jemalloc-sys
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "oxlint";
|
|
version = "0.0.17";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "web-infra-dev";
|
|
repo = "oxc";
|
|
rev = "oxlint_v${version}";
|
|
hash = "sha256-s+D9+gHJLldTaMHr+XahppNHYL62V1J9iOgRZkr/p9Q=";
|
|
};
|
|
|
|
cargoHash = "sha256-NQ/s39x/LLQoiW7p2x65l1oBkDal46g5/G6r4Ttpgsw=";
|
|
|
|
buildInputs = [
|
|
rust-jemalloc-sys
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.Security
|
|
];
|
|
|
|
cargoBuildFlags = [ "--bin=oxlint" ];
|
|
cargoTestFlags = cargoBuildFlags;
|
|
|
|
meta = with lib; {
|
|
description = "A suite of high-performance tools for JavaScript and TypeScript written in Rust";
|
|
homepage = "https://github.com/web-infra-dev/oxc";
|
|
changelog = "https://github.com/web-infra-dev/oxc/releases/tag/${src.rev}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
mainProgram = "oxlint";
|
|
};
|
|
}
|