mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
7 lines
224 B
Bash
7 lines
224 B
Bash
|
useMemorymapping () {
|
||
|
export NIX_CFLAGS_COMPILE="${NIX_CFLAGS_COMPILE-}${NIX_CFLAGS_COMPILE:+ }-include fmemopen.h";
|
||
|
export NIX_LDFLAGS="${NIX_LDFLAGS-}${NIX_LDFLAGS:+ }-lmemorymapping";
|
||
|
}
|
||
|
|
||
|
postHooks+=(useMemorymapping)
|