core/pkgs/by-name/me/memstream/setup-hook.sh

7 lines
213 B
Bash
Raw Permalink Normal View History

2024-05-02 00:46:19 +00:00
useMemstream () {
export NIX_CFLAGS_COMPILE="${NIX_CFLAGS_COMPILE-}${NIX_CFLAGS_COMPILE:+ }-include memstream.h";
export NIX_LDFLAGS="${NIX_LDFLAGS-}${NIX_LDFLAGS:+ }-lmemstream";
}
postHooks+=(useMemstream)