Skip to content

Commit

Permalink
Merge pull request #173694 from marsam/ledger-python
Browse files Browse the repository at this point in the history
ledger: separate python output
  • Loading branch information
marsam authored May 22, 2022
2 parents 944735b + ef8d563 commit 3e7f627
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/applications/office/ledger/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
sha256 = "0x6jxwss3wwzbzlwmnwb8yzjk8f9wfawif4f1b74z2qg6hc4r7f6";
};

outputs = [ "out" "dev" ];
outputs = [ "out" "dev" "py" ];

buildInputs = [
(boost.override { enablePython = usePython; python = python3; })
Expand All @@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
# 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}"'
--replace 'DESTINATION ''${Python_SITEARCH}' 'DESTINATION "${placeholder "py"}/${python3.sitePackages}"'
'';

patches = [
Expand Down
5 changes: 5 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4723,6 +4723,11 @@ in {

leb128 = callPackage ../development/python-modules/leb128 { };

ledger = (toPythonModule (pkgs.ledger.override {
usePython = true;
python3 = python;
})).py;

ledger_agent = callPackage ../development/python-modules/ledger_agent { };

ledgerblue = callPackage ../development/python-modules/ledgerblue { };
Expand Down

0 comments on commit 3e7f627

Please sign in to comment.