Use custom fd build with jemalloc tuned for Asahi

This commit is contained in:
Natsu Kagami 2022-11-25 14:45:06 +01:00
parent 165f438935
commit abe42033c6
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51

View file

@ -1,5 +1,16 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
let
fd =
if pkgs.stdenv.isAarch64 && pkgs.stdenv.isLinux then
pkgs.fd.overrideAttrs
(attrs:
{
preBuild = ''
export JEMALLOC_SYS_WITH_LG_PAGE=16
'';
}) else pkgs.fd;
in
{ {
imports = [ imports = [
./kakoune/kak.nix ./kakoune/kak.nix