summary refs log tree commit diff
path: root/pkgs/applications/office/ledger/default.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2018-07-01 19:32:50 +0200
committeraszlig <aszlig@nix.build>2018-07-01 19:40:40 +0200
commit179f9c4fd12865a2e5089ce18bd0effd1c048f3a (patch)
tree87ffaf890f086d51f98d5f36e83984a9e4392072 /pkgs/applications/office/ledger/default.nix
parentc85f23a82a6ae9a5b38a789897e455b11983e528 (diff)
downloadnixlib-179f9c4fd12865a2e5089ce18bd0effd1c048f3a.tar
nixlib-179f9c4fd12865a2e5089ce18bd0effd1c048f3a.tar.gz
nixlib-179f9c4fd12865a2e5089ce18bd0effd1c048f3a.tar.bz2
nixlib-179f9c4fd12865a2e5089ce18bd0effd1c048f3a.tar.lz
nixlib-179f9c4fd12865a2e5089ce18bd0effd1c048f3a.tar.xz
nixlib-179f9c4fd12865a2e5089ce18bd0effd1c048f3a.tar.zst
nixlib-179f9c4fd12865a2e5089ce18bd0effd1c048f3a.zip
ledger: Use Boost Python support if applicable
Since 772eef91686974b7710081a9a77e5c0e287c25e8 Boost no longer has
Python support enabled by default, so depending on whether Ledger has
Python support built in we also use either Boost with Python support or
without.

Tested building with and without Python support and both builds now
succeed.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @the-kenny, @jwiegley
Diffstat (limited to 'pkgs/applications/office/ledger/default.nix')
-rw-r--r--pkgs/applications/office/ledger/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/applications/office/ledger/default.nix b/pkgs/applications/office/ledger/default.nix
index 9675293cfe57..387a71aa04ee 100644
--- a/pkgs/applications/office/ledger/default.nix
+++ b/pkgs/applications/office/ledger/default.nix
@@ -13,7 +13,10 @@ stdenv.mkDerivation rec {
     fetchSubmodules = true;
   };
 
-  buildInputs = [ boost gmp mpfr libedit python texinfo gnused ];
+  buildInputs = [
+    (boost.override { enablePython = usePython; })
+    gmp mpfr libedit python texinfo gnused
+  ];
 
   nativeBuildInputs = [ cmake ];