From 22ced6999a80a7eea620599c6c2465bfd02efcfe Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Wed, 6 May 2026 20:27:19 +0200 Subject: [PATCH] ty: use jemalloc from Nixpkgs This fixes, among other things, using ty on aarch64 with a kernel with 16K or 64K pages. --- pkgs/by-name/ty/ty/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/ty/ty/package.nix b/pkgs/by-name/ty/ty/package.nix index a8653f65abb9..2357ae5216c6 100644 --- a/pkgs/by-name/ty/ty/package.nix +++ b/pkgs/by-name/ty/ty/package.nix @@ -7,6 +7,9 @@ # nativeBuildInputs installShellFiles, + # buildInputs + rust-jemalloc-sys, + buildPackages, versionCheckHook, nix-update-script, @@ -38,6 +41,7 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-8DaJWHFBoVzpbkd9QmJ72a5NeKuX99lfDq3uUp+wd5I="; nativeBuildInputs = [ installShellFiles ]; + buildInputs = [ rust-jemalloc-sys ]; # `ty`'s tests use `insta-cmd`, which depends on the structure of the `target/` directory, # and also fails to find the environment variable `$CARGO_BIN_EXE_ty`, which leads to tests failing.