repo.or.cz
/
NixPkgs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git]
/
pkgs
/
development
/
libraries
/
memorymapping
/
setup-hook.sh
blob
5ee3470fe3705689dfcb48fa10c0444624736d77
1
useMemorymapping
() {
2
export
NIX_CFLAGS_COMPILE
=
"
${NIX_CFLAGS_COMPILE-}
${NIX_CFLAGS_COMPILE:+ }
-include fmemopen.h"
;
3
export
NIX_LDFLAGS
=
"
${NIX_LDFLAGS-}
${NIX_LDFLAGS:+ }
-lmemorymapping"
;
4
}
5
6
postHooks
+=(
useMemorymapping
)