aboutsummaryrefslogtreecommitdiff
path: root/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'package.nix')
-rw-r--r--package.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/package.nix b/package.nix
index f809ae67b..a6933b0ab 100644
--- a/package.nix
+++ b/package.nix
@@ -178,10 +178,10 @@ in stdenv.mkDerivation (finalAttrs: {
mkdir -p $out/lib
cp -pd ${boost}/lib/{libboost_context*,libboost_thread*,libboost_system*} $out/lib
rm -f $out/lib/*.a
- '' + lib.optionalString stdenv.hostPlatform.isLinux ''
+ '' + lib.optionalString (!finalAttrs.dontBuild && stdenv.hostPlatform.isLinux) ''
chmod u+w $out/lib/*.so.*
patchelf --set-rpath $out/lib:${stdenv.cc.cc.lib}/lib $out/lib/libboost_thread.so.*
- '' + lib.optionalString stdenv.hostPlatform.isDarwin ''
+ '' + lib.optionalString (!finalAttrs.dontBuild && stdenv.hostPlatform.isDarwin) ''
for LIB in $out/lib/*.dylib; do
chmod u+w $LIB
install_name_tool -id $LIB $LIB