nixpkgs/pkgs/development/libraries/memorymapping/setup-hook.sh

7 lines
224 B
Bash
Raw Normal View History

useMemorymapping () {
export NIX_CFLAGS_COMPILE="${NIX_CFLAGS_COMPILE-}${NIX_CFLAGS_COMPILE:+ }-include fmemopen.h";
export NIX_LDFLAGS="${NIX_LDFLAGS-}${NIX_LDFLAGS:+ }-lmemorymapping";
}
postHooks+=(useMemorymapping)