mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 16:21:24 +01:00
move rust-jemalloc-sys to its own file
This commit is contained in:
parent
f07c8c2b6f
commit
2e6bf86a42
3 changed files with 18 additions and 12 deletions
12
nix/pkgs/rust-jemalloc-sys/default.nix
Normal file
12
nix/pkgs/rust-jemalloc-sys/default.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# This derivation will set the JEMALLOC_OVERRIDE variable, causing the
|
||||
# tikv-jemalloc-sys crate to use the nixpkgs jemalloc instead of building it's
|
||||
# own. In order for this to work, we need to set flags on the build that match
|
||||
# whatever flags tikv-jemalloc-sys was going to use. These are dependent on
|
||||
# which features we enable in tikv-jemalloc-sys.
|
||||
|
||||
{ rust-jemalloc-sys }:
|
||||
|
||||
rust-jemalloc-sys.override {
|
||||
# tikv-jemalloc-sys/unprefixed_malloc_on_supported_platforms feature
|
||||
unprefixed = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue