nixpkgs/pkgs/development/libraries/memorymapping/setup-hook.sh
2021-08-24 18:21:41 -04:00

6 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)