From 4410ac3485f7f692baf480793171580e03672124 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Wed, 4 Jun 2025 18:37:40 +0200 Subject: [PATCH] python3Packages.granian: only use rust-jemalloc-sys on aarch64 --- pkgs/development/python-modules/granian/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/granian/default.nix b/pkgs/development/python-modules/granian/default.nix index 2698683c3a55..6c9b5ceba619 100644 --- a/pkgs/development/python-modules/granian/default.nix +++ b/pkgs/development/python-modules/granian/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, fetchFromGitHub, rustPlatform, cacert, @@ -40,9 +41,10 @@ buildPythonPackage rec { maturinBuildHook ]; - buildInputs = [ + buildInputs = lib.optionals (stdenv.hostPlatform.isAarch64) [ # fix "Unsupported system page size" on aarch64-linux with 16k pages # https://github.com/NixOS/nixpkgs/issues/410572 + # only enabled on aarch64 due to https://github.com/NixOS/nixpkgs/pull/410611#issuecomment-2939564567 (rust-jemalloc-sys.overrideAttrs ( { configureFlags, ... }: {