mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
ba50ad471f
Diff: https://github.com/web-infra-dev/oxc/compare/oxlint_v0.0.18...oxlint_v0.1.2 Changelog: https://github.com/web-infra-dev/oxc/releases/tag/oxlint_v0.1.2
40 lines
978 B
Nix
40 lines
978 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, rust-jemalloc-sys
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "oxlint";
|
|
version = "0.1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "web-infra-dev";
|
|
repo = "oxc";
|
|
rev = "oxlint_v${version}";
|
|
hash = "sha256-XQDkNfgqjfUSDwC3JgdzCqYT4O14UWGImpk5gVyQKfE=";
|
|
};
|
|
|
|
cargoHash = "sha256-pJW7191gUv3Sbp8C2IYxJz2G/nunmBnnKaV+yLX1ZKc=";
|
|
|
|
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";
|
|
};
|
|
}
|