From ccb1480d93f16c7034752798c3831d7773d8a021 Mon Sep 17 00:00:00 2001 From: "re:fi.64" Date: Wed, 29 Jan 2025 17:49:07 -0600 Subject: [PATCH] uv: Use system jemalloc jemalloc-sys hardcodes the build system's pagesize (#202863), making it incompatible with systems that don't have the standard 4k page size (such as Asahi Linux). --- pkgs/by-name/uv/uv/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/uv/uv/package.nix b/pkgs/by-name/uv/uv/package.nix index 39ca6935e304..731cfe04d77d 100644 --- a/pkgs/by-name/uv/uv/package.nix +++ b/pkgs/by-name/uv/uv/package.nix @@ -4,6 +4,9 @@ rustPlatform, fetchFromGitHub, + # buildInputs + rust-jemalloc-sys, + # nativeBuildInputs cmake, installShellFiles, @@ -29,6 +32,10 @@ rustPlatform.buildRustPackage rec { useFetchCargoVendor = true; cargoHash = "sha256-dop61TB9w2r+our4DiKzPvw9lI07cx9bT0Ujtvhko1E="; + buildInputs = [ + rust-jemalloc-sys + ]; + nativeBuildInputs = [ cmake installShellFiles