summaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2014-11-04 00:08:21 -0600
committerJohn Wiegley <johnw@newartisans.com>2014-11-04 00:11:35 -0600
commit62e1354e0bb9bef2efaed14e3543199880026491 (patch)
treefa5a2958ea14d29b62dfe87554db9b604a839416 /default.nix
parent085596ae0ed077fb3d10e58159508a936601de41 (diff)
downloadfork-ledger-62e1354e0bb9bef2efaed14e3543199880026491.tar.gz
fork-ledger-62e1354e0bb9bef2efaed14e3543199880026491.tar.bz2
fork-ledger-62e1354e0bb9bef2efaed14e3543199880026491.zip
Some minor changes
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix10
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 = {