From 28d0908bfbe4b1d91b9369bdeb3a6ef67f1ec853 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 4 Nov 2014 00:05:58 -0600 Subject: [PATCH] ledger3: On darwin, change boost lib paths to absolute references --- pkgs/applications/office/ledger/3.0.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/office/ledger/3.0.nix b/pkgs/applications/office/ledger/3.0.nix index 6118d377a79..9d25eb05632 100644 --- a/pkgs/applications/office/ledger/3.0.nix +++ b/pkgs/applications/office/ledger/3.0.nix @@ -23,6 +23,11 @@ stdenv.mkDerivation { postInstall = '' mkdir -p $out/share/emacs/site-lisp/ cp -v "$src/lisp/"*.el $out/share/emacs/site-lisp/ + '' + stdenv.lib.optionalString stdenv.isDarwin '' + for i in date_time filesystem system iostreams regex unit_test_framework; do + boostlib=libboost_''$i.dylib + install_name_tool -change ''$boostlib $out/lib/''$boostlib $out/bin/ledger + done ''; meta = {