diff options
author | Craig Earls <enderw88@gmail.com> | 2014-11-07 18:21:13 -0700 |
---|---|---|
committer | Craig Earls <enderw88@gmail.com> | 2014-11-07 18:21:13 -0700 |
commit | af15887ecb32cdacea8a0a487f8b94dd81f98383 (patch) | |
tree | cccfad949f3a2511bc0ef5071b818503290b9842 /default.nix | |
parent | 1bd67755fa3127d80b7534d15f1f9de1b477c19a (diff) | |
parent | 62e1354e0bb9bef2efaed14e3543199880026491 (diff) | |
download | fork-ledger-af15887ecb32cdacea8a0a487f8b94dd81f98383.tar.gz fork-ledger-af15887ecb32cdacea8a0a487f8b94dd81f98383.tar.bz2 fork-ledger-af15887ecb32cdacea8a0a487f8b94dd81f98383.zip |
Merge branch 'master' of https://github.com/ledger/ledger
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/default.nix b/default.nix index d54621d1..4885c98d 100644 --- a/default.nix +++ b/default.nix @@ -7,8 +7,7 @@ in stdenv.mkDerivation { name = "ledger-3.1.0.${rev}"; - - src = ./.; + src = builtins.filterSource (path: type: type != "unknown") ./.; buildInputs = [ cmake boost gmp mpfr libedit python texinfo gnused ]; @@ -18,7 +17,12 @@ stdenv.mkDerivation { # broken in ledger... postInstall = '' mkdir -p $out/share/emacs/site-lisp/ - cp -v $src/lisp/*.el $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 ${boost}/lib/''$boostlib $out/bin/ledger + done ''; meta = { |