mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
13 lines
393 B
Bash
13 lines
393 B
Bash
postPhases+=" boostHeaderStripPhase"
|
|
|
|
boostHeaderStripPhase() {
|
|
runHook preBoostHeaderStrip
|
|
[ -z "$outputs" ] && outputs=out
|
|
for output in $outputs; do
|
|
eval "path=\$$outputs"
|
|
[ -d "$path/bin" ] || continue
|
|
find "$path/bin" -type f -exec sed -i "s,[^/]*\(-boost-[0-9.]*-dev\),xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\1,g" {} \;
|
|
done
|
|
runHook postBoostHeaderStrip
|
|
}
|