Merge pull request #173694 from marsam/ledger-python
ledger: separate python output
This commit is contained in:
commit
3e7f627268
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0x6jxwss3wwzbzlwmnwb8yzjk8f9wfawif4f1b74z2qg6hc4r7f6";
|
sha256 = "0x6jxwss3wwzbzlwmnwb8yzjk8f9wfawif4f1b74z2qg6hc4r7f6";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" "py" ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
(boost.override { enablePython = usePython; python = python3; })
|
(boost.override { enablePython = usePython; python = python3; })
|
||||||
@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
|
|||||||
# however, that would write to a different nixstore path, pass our own sitePackages location
|
# however, that would write to a different nixstore path, pass our own sitePackages location
|
||||||
prePatch = lib.optionalString usePython ''
|
prePatch = lib.optionalString usePython ''
|
||||||
substituteInPlace src/CMakeLists.txt \
|
substituteInPlace src/CMakeLists.txt \
|
||||||
--replace 'DESTINATION ''${Python_SITEARCH}' 'DESTINATION "${python3.sitePackages}"'
|
--replace 'DESTINATION ''${Python_SITEARCH}' 'DESTINATION "${placeholder "py"}/${python3.sitePackages}"'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -4723,6 +4723,11 @@ in {
|
|||||||
|
|
||||||
leb128 = callPackage ../development/python-modules/leb128 { };
|
leb128 = callPackage ../development/python-modules/leb128 { };
|
||||||
|
|
||||||
|
ledger = (toPythonModule (pkgs.ledger.override {
|
||||||
|
usePython = true;
|
||||||
|
python3 = python;
|
||||||
|
})).py;
|
||||||
|
|
||||||
ledger_agent = callPackage ../development/python-modules/ledger_agent { };
|
ledger_agent = callPackage ../development/python-modules/ledger_agent { };
|
||||||
|
|
||||||
ledgerblue = callPackage ../development/python-modules/ledgerblue { };
|
ledgerblue = callPackage ../development/python-modules/ledgerblue { };
|
||||||
|
Loading…
Reference in New Issue
Block a user