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.
This commit is contained in:
Philipp Middendorf 2018-05-03 13:40:48 +02:00
parent b30c6d7950
commit b62788f744

View File

@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, cmake, boost, gmp, mpfr, libedit, python
, texinfo, gnused }:
, texinfo, gnused, usePython ? true }:
stdenv.mkDerivation rec {
name = "ledger-${version}";
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
cmakeFlags = [ "-DCMAKE_INSTALL_LIBDIR=lib" ];
cmakeFlags = [ "-DCMAKE_INSTALL_LIBDIR=lib" (stdenv.lib.optionalString usePython "-DUSE_PYTHON=true") ];
# Skip byte-compiling of emacs-lisp files because this is currently
# broken in ledger...