3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/memorymapping/setup-hook.sh
2021-08-24 18:21:41 -04:00

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)