From 744d43f8ef10c11c1c28650d8215635a27a6fb2a Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Wed, 5 Aug 2020 18:18:18 -0500 Subject: [PATCH] ledger: fix build on darwin --- pkgs/applications/office/ledger/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/office/ledger/default.nix b/pkgs/applications/office/ledger/default.nix index 543545de2631..a0a558f5ed8e 100644 --- a/pkgs/applications/office/ledger/default.nix +++ b/pkgs/applications/office/ledger/default.nix @@ -27,6 +27,10 @@ stdenv.mkDerivation rec { "-DCMAKE_INSTALL_LIBDIR=lib" "-DBUILD_DOCS:BOOL=ON" (lib.optionalString usePython "-DUSE_PYTHON=true") + ] ++ lib.optionals (usePython && stdenv.isDarwin) [ + # Fix python lookup on Darwin. Not necessary after + # https://github.com/NixOS/nixpkgs/pull/94090 lands in master + "-DPython_ROOT_DIR=${python}" ]; # by default, it will query the python interpreter for it's sitepackages location