summary refs log tree commit diff
diff options
context:
space:
mode:
authorAaron L. Zeng <me@bcc32.com>2022-04-22 13:27:12 -0400
committerBjørn Forsman <bjorn.forsman@gmail.com>2022-04-23 08:38:32 +0200
commit9c1b29e66294b69a84c1cc1c6ff6d606c23d327b (patch)
treec534d96485695ddc97e3b96f5993b3eea255ca12
parentd73efdae64e203d2659773cfb46839ed92f7e3cd (diff)
downloadnixpkgs-9c1b29e66294b69a84c1cc1c6ff6d606c23d327b.tar
nixpkgs-9c1b29e66294b69a84c1cc1c6ff6d606c23d327b.tar.gz
nixpkgs-9c1b29e66294b69a84c1cc1c6ff6d606c23d327b.tar.bz2
nixpkgs-9c1b29e66294b69a84c1cc1c6ff6d606c23d327b.tar.lz
nixpkgs-9c1b29e66294b69a84c1cc1c6ff6d606c23d327b.tar.xz
nixpkgs-9c1b29e66294b69a84c1cc1c6ff6d606c23d327b.tar.zst
nixpkgs-9c1b29e66294b69a84c1cc1c6ff6d606c23d327b.zip
ledger: Don't depend on python3 if usePython is false
-rw-r--r--pkgs/applications/office/ledger/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/applications/office/ledger/default.nix b/pkgs/applications/office/ledger/default.nix
index 5478382cbd8..0ea9b908ada 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 ];