folly: use sanitiseHeaderPathsHook
This commit is contained in:
parent
651c77c71e
commit
363f75d245
@ -8,7 +8,7 @@
|
||||
cmake,
|
||||
ninja,
|
||||
pkg-config,
|
||||
removeReferencesTo,
|
||||
sanitiseHeaderPathsHook,
|
||||
|
||||
double-conversion,
|
||||
fast-float,
|
||||
@ -59,7 +59,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
cmake
|
||||
ninja
|
||||
pkg-config
|
||||
removeReferencesTo
|
||||
sanitiseHeaderPathsHook
|
||||
];
|
||||
|
||||
# See CMake/folly-deps.cmake in the Folly source tree.
|
||||
@ -192,18 +192,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
# Sanitize header paths to avoid runtime dependencies leaking in
|
||||
# through `__FILE__`.
|
||||
(
|
||||
shopt -s globstar
|
||||
for header in "$dev/include"/**/*.h; do
|
||||
sed -i "1i#line 1 \"$header\"" "$header"
|
||||
remove-references-to -t "$dev" "$header"
|
||||
done
|
||||
)
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
inherit boost;
|
||||
fmt = fmt_11;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user