Merge pull request #113366 from bhipple/ledger/py3

ledger: build python bindings with python3

Sandro 2fe492c1 0b7f4e40

Changed files
+4 -4
pkgs
applications
office
ledger
+4 -4
pkgs/applications/office/ledger/default.nix
···
-
{ stdenv, lib, fetchFromGitHub, cmake, boost, gmp, mpfr, libedit, python
, texinfo, gnused, usePython ? true }:
stdenv.mkDerivation rec {
···
outputs = [ "out" "dev" ];
buildInputs = [
-
(boost.override { enablePython = usePython; })
-
gmp mpfr libedit python gnused
];
nativeBuildInputs = [ cmake texinfo ];
···
# however, that would write to a different nixstore path, pass our own sitePackages location
prePatch = lib.optionalString usePython ''
substituteInPlace src/CMakeLists.txt \
-
--replace 'DESTINATION ''${Python_SITEARCH}' 'DESTINATION "${python.sitePackages}"'
'';
installTargets = [ "doc" "install" ];
···
+
{ stdenv, lib, fetchFromGitHub, cmake, boost, gmp, mpfr, libedit, python3
, texinfo, gnused, usePython ? true }:
stdenv.mkDerivation rec {
···
outputs = [ "out" "dev" ];
buildInputs = [
+
(boost.override { enablePython = usePython; python = python3; })
+
gmp mpfr libedit python3 gnused
];
nativeBuildInputs = [ cmake texinfo ];
···
# however, that would write to a different nixstore path, pass our own sitePackages location
prePatch = lib.optionalString usePython ''
substituteInPlace src/CMakeLists.txt \
+
--replace 'DESTINATION ''${Python_SITEARCH}' 'DESTINATION "${python3.sitePackages}"'
'';
installTargets = [ "doc" "install" ];