ledger: fix build on darwin

wip/yesman
Mario Rodas 4 years ago
parent a52725dc62
commit 744d43f8ef
No known key found for this signature in database
GPG Key ID: 325649BCA6D53027
  1. 4
      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

Loading…
Cancel
Save