diff options
author | Yureka <yuka@yuka.dev> | 2023-07-13 21:13:10 +0200 |
---|---|---|
committer | Yureka <yuka@yuka.dev> | 2023-10-20 14:26:07 +0200 |
commit | 799fff889b1e8058ea392f93400fbbb8923edc86 (patch) | |
tree | 28cfc117799f6f001a606fdc2db0b54c5fd34b78 /pkgs/applications/blockchains | |
parent | 35925e55f2febebf04aca692000b51d4b6365dce (diff) |
tree-wide: make rust jemalloc-sys use nixpkgs jemalloc build
Diffstat (limited to 'pkgs/applications/blockchains')
-rw-r--r-- | pkgs/applications/blockchains/lighthouse/default.nix | 2 | ||||
-rw-r--r-- | pkgs/applications/blockchains/polkadot/default.nix | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/applications/blockchains/lighthouse/default.nix b/pkgs/applications/blockchains/lighthouse/default.nix index 20792dd8fd950..44cbb147bd206 100644 --- a/pkgs/applications/blockchains/lighthouse/default.nix +++ b/pkgs/applications/blockchains/lighthouse/default.nix @@ -14,6 +14,7 @@ , rustPlatform , Security , sqlite +, rust-jemalloc-sys , stdenv , SystemConfiguration , testers @@ -70,6 +71,7 @@ rustPlatform.buildRustPackage rec { buildInputs = [ sqlite + rust-jemalloc-sys ] ++ lib.optionals stdenv.isDarwin [ CoreFoundation Security diff --git a/pkgs/applications/blockchains/polkadot/default.nix b/pkgs/applications/blockchains/polkadot/default.nix index 1ed5d9819110a..4be874ef5ce19 100644 --- a/pkgs/applications/blockchains/polkadot/default.nix +++ b/pkgs/applications/blockchains/polkadot/default.nix @@ -2,6 +2,7 @@ , lib , protobuf , rocksdb +, rust-jemalloc-sys-unprefixed , rustPlatform , rustc-wasm32 , stdenv @@ -60,7 +61,9 @@ rustPlatform.buildRustPackage rec { rustc-wasm32.llvmPackages.lld ]; - buildInputs = lib.optionals stdenv.isDarwin [ Security SystemConfiguration ]; + buildInputs = [ + rust-jemalloc-sys-unprefixed + ] ++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration ]; # NOTE: we need to force lld otherwise rust-lld is not found for wasm32 target CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_LINKER = "lld"; |