mullvad: use rust-jemalloc-sys to fix 16k pagesize (#547511)

This commit is contained in:
Yureka
2026-07-30 21:00:36 +00:00
committed by GitHub

View File

@@ -11,6 +11,7 @@
libnftnl,
pkg-config,
protobuf,
rust-jemalloc-sys,
versionCheckHook,
}:
@@ -70,15 +71,17 @@ rustPlatform.buildRustPackage (finalAttrs: {
protobuf
];
buildInputs =
lib.optionals stdenv.hostPlatform.isLinux [
dbus.dev
libmnl
libnftnl
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.libpcap
];
buildInputs = [
rust-jemalloc-sys
]
++ lib.optionals stdenv.hostPlatform.isLinux [
dbus.dev
libmnl
libnftnl
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.libpcap
];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
compdir=$(mktemp -d)