git.iko.soy/typeable/nixpkgs
on master help sign in
ledger: enable python command

ledger in nixpkgs currently uses python (it’s in buildInputs), but the ledger python command isn’t available until you turn it on via a cmake flag.

commitb62788f744225e5ff498059e7c5b9048d31f966d authorPhilipp Middendorf <middendorf@plapadoo.de> dateThu 3 May 2018, 13:40 (9 years ago) parentb30c6d7
1 file changed+2−2
pkgs/applications/office/ledger/default.nix+2−2
pkgs/applications/office/ledger/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchFromGitHub, cmake, boost, gmp, mpfr, libedit, python
2−, texinfo, gnused }:
2+, texinfo, gnused, usePython ? true }:
33
44stdenv.mkDerivation rec {
55 name = "ledger-${version}";
@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
1919
2020 enableParallelBuilding = true;
2121
22− cmakeFlags = [ "-DCMAKE_INSTALL_LIBDIR=lib" ];
22+ cmakeFlags = [ "-DCMAKE_INSTALL_LIBDIR=lib" (stdenv.lib.optionalString usePython "-DUSE_PYTHON=true") ];
2323
2424 # Skip byte-compiling of emacs-lisp files because this is currently
2525 # broken in ledger...