mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-04 11:15:12 +00:00
commit
a34c70c2a2
33
pkgs/development/tools/ruff/default.nix
Normal file
33
pkgs/development/tools/ruff/default.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, stdenv
|
||||
, CoreServices
|
||||
, Security
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "ruff";
|
||||
version = "0.0.46";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "charliermarsh";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "10khkcv2bjsxkwn18vkm025v2qxdiymy8gmky09xz37s51bysvlh";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-i0fQ8oEbZen9LD1dccXc4pczBMadP1/fk1cwaNKvVYQ=";
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [
|
||||
CoreServices
|
||||
Security
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "An extremely fast Python linter";
|
||||
homepage = "https://github.com/charliermarsh/ruff";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ figsoda ];
|
||||
};
|
||||
}
|
@ -36313,6 +36313,10 @@ with pkgs;
|
||||
|
||||
rucksack = callPackage ../development/tools/rucksack { };
|
||||
|
||||
ruff = callPackage ../development/tools/ruff {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices Security;
|
||||
};
|
||||
|
||||
sam-ba = callPackage ../tools/misc/sam-ba { };
|
||||
|
||||
sndio = callPackage ../misc/sndio { };
|
||||
|
Loading…
Reference in New Issue
Block a user