mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
Merge pull request #252681 from figsoda/oxlint
This commit is contained in:
commit
c9956c110e
2 changed files with 38 additions and 0 deletions
36
pkgs/development/tools/oxlint/default.nix
Normal file
36
pkgs/development/tools/oxlint/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
{ lib
|
||||||
|
, rustPlatform
|
||||||
|
, fetchFromGitHub
|
||||||
|
, stdenv
|
||||||
|
, darwin
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "oxlint";
|
||||||
|
version = "0.0.11";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "web-infra-dev";
|
||||||
|
repo = "oxc";
|
||||||
|
rev = "oxlint_v${version}";
|
||||||
|
hash = "sha256-di+uCLZJNJMETMSUxQwlFaZPJps0+HIL7h+EvudP5II=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoHash = "sha256-r+HRm9JNFKFL78VP/Yz87b1nQDLwbNuhHd0JkXeuCC0=";
|
||||||
|
|
||||||
|
buildInputs = 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";
|
||||||
|
};
|
||||||
|
}
|
|
@ -11720,6 +11720,8 @@ with pkgs;
|
||||||
|
|
||||||
oxker = callPackage ../applications/misc/oxker { };
|
oxker = callPackage ../applications/misc/oxker { };
|
||||||
|
|
||||||
|
oxlint = callPackage ../development/tools/oxlint { };
|
||||||
|
|
||||||
ovh-ttyrec = callPackage ../tools/misc/ovh-ttyrec { };
|
ovh-ttyrec = callPackage ../tools/misc/ovh-ttyrec { };
|
||||||
|
|
||||||
ovito = libsForQt5.callPackage ../applications/graphics/ovito {
|
ovito = libsForQt5.callPackage ../applications/graphics/ovito {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue