Skip to content

Commit

Permalink
ruff: use proper rust-jemalloc-sys-unprefixed dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Sep 15, 2024
1 parent 9ef4e81 commit 6a78cc3
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions pkgs/by-name/ru/ruff/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
installShellFiles,
stdenv,
darwin,
rust-jemalloc-sys,
rust-jemalloc-sys-unprefixed,
ruff-lsp,
nix-update-script,
testers,
Expand All @@ -31,17 +31,10 @@ rustPlatform.buildRustPackage rec {
};
};

# Revert the change made in https://github.com/astral-sh/ruff/pull/13299
# It was causing linking issues: https://github.com/NixOS/nixpkgs/pull/341674#issuecomment-2351172084
postPatch = ''
substituteInPlace crates/ruff_benchmark/Cargo.toml \
--replace-fail '"unprefixed_malloc_on_supported_platforms"' ' '
'';

nativeBuildInputs = [ installShellFiles ];

buildInputs = [
rust-jemalloc-sys
rust-jemalloc-sys-unprefixed
] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.CoreServices ];

postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
Expand Down

0 comments on commit 6a78cc3

Please sign in to comment.