mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
boost: Remove dependencies on boost-dev
This commit is contained in:
parent
af8654db27
commit
09d970ce12
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, icu, expat, zlib, bzip2, python, fixDarwinDylibNames
|
{ stdenv, icu, expat, zlib, bzip2, python, fixDarwinDylibNames, makeSetupHook
|
||||||
, toolset ? null
|
, toolset ? null
|
||||||
, enableRelease ? true
|
, enableRelease ? true
|
||||||
, enableDebug ? false
|
, enableDebug ? false
|
||||||
@ -89,13 +89,16 @@ let
|
|||||||
|
|
||||||
# Create a derivation which encompasses everything, making buildInputs nicer
|
# Create a derivation which encompasses everything, making buildInputs nicer
|
||||||
mkdir -p $out/nix-support
|
mkdir -p $out/nix-support
|
||||||
echo "$dev $lib" > $out/nix-support/propagated-native-build-inputs
|
echo "${stripHeaderPathHook} $dev $lib" > $out/nix-support/propagated-native-build-inputs
|
||||||
'';
|
'';
|
||||||
|
|
||||||
commonConfigureFlags = [
|
commonConfigureFlags = [
|
||||||
"--includedir=$(dev)/include"
|
"--includedir=$(dev)/include"
|
||||||
"--libdir=$(lib)/lib"
|
"--libdir=$(lib)/lib"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
stripHeaderPathHook = makeSetupHook { } ./strip-header-path.sh;
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
|
12
pkgs/development/libraries/boost/strip-header-path.sh
Normal file
12
pkgs/development/libraries/boost/strip-header-path.sh
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user