eeb71630af
GitOrigin-RevId: 636051e353461f073ac55d5d42c1ed062a345046
33 lines
697 B
Nix
33 lines
697 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, stdenv
|
|
, CoreServices
|
|
, Security
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "ruff";
|
|
version = "0.0.94";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "charliermarsh";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-ux6AeETHFVCapBBKn32NlMhXMWTi5tEbnSqGd6K5r0A=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-7eB6DaD4/ivAGip3Vsb1RZBQ38Hxn4y/oz9/jjI3A1g=";
|
|
|
|
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 ];
|
|
};
|
|
}
|