From 9c1b29e66294b69a84c1cc1c6ff6d606c23d327b Mon Sep 17 00:00:00 2001 From: "Aaron L. Zeng" Date: Fri, 22 Apr 2022 13:27:12 -0400 Subject: [PATCH] ledger: Don't depend on python3 if usePython is false --- pkgs/applications/office/ledger/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/office/ledger/default.nix b/pkgs/applications/office/ledger/default.nix index 5478382cbd83..0ea9b908ada6 100644 --- a/pkgs/applications/office/ledger/default.nix +++ b/pkgs/applications/office/ledger/default.nix @@ -16,8 +16,8 @@ stdenv.mkDerivation rec { buildInputs = [ (boost.override { enablePython = usePython; python = python3; }) - gmp mpfr libedit python3 gnused - ]; + gmp mpfr libedit gnused + ] ++ lib.optional usePython python3; nativeBuildInputs = [ cmake texinfo ];