mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
mullvad: use rust-jemalloc-sys to fix 16k pagesize (#547511)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user