summary refs log tree commit diff
path: root/pkgs/development/libraries/memstream/setup-hook.sh
blob: 09aabe748841151d5ab7da6b1e8f0a7b58a74fb0 (plain) (blame)
1
2
3
4
5
6
useMemstream () {
  export NIX_CFLAGS_COMPILE="${NIX_CFLAGS_COMPILE-}${NIX_CFLAGS_COMPILE:+ }-include memstream.h";
  export NIX_LDFLAGS="${NIX_LDFLAGS-}${NIX_LDFLAGS:+ }-lmemstream";
}

postHooks+=(useMemstream)