mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-14 19:48:39 +03:00
distro-overlay: use pythonPackagesExtensions
This commit is contained in:
parent
06776293ba
commit
2632a16e77
1 changed files with 7 additions and 13 deletions
|
@ -1,15 +1,6 @@
|
||||||
{ version, distro, python }:
|
{ version, distro, python }:
|
||||||
self: super:
|
self: super:
|
||||||
let
|
let
|
||||||
pythonOverridesFor = with self.lib; prevPython: prevPython // {
|
|
||||||
pkgs = prevPython.pkgs.overrideScope (pyFinal: pyPrev: {
|
|
||||||
wxPython = pyFinal.wxPython_4_2;
|
|
||||||
|
|
||||||
# ROS is not compatible with empy 4
|
|
||||||
empy = pyFinal.empy_3;
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
base = rosSelf: rosSuper: {
|
base = rosSelf: rosSuper: {
|
||||||
recurseForDerivations = true;
|
recurseForDerivations = true;
|
||||||
lib = super.lib // import ../lib { inherit self rosSelf; };
|
lib = super.lib // import ../lib { inherit self rosSelf; };
|
||||||
|
@ -25,11 +16,14 @@ let
|
||||||
inherit (self) buildEnv;
|
inherit (self) buildEnv;
|
||||||
};
|
};
|
||||||
|
|
||||||
python = pythonOverridesFor python;
|
pythonPackagesExtensions = super.pythonPackagesExtensions ++ [
|
||||||
pythonPackages = rosSelf.python.pkgs;
|
(pyFinal: pyPrev: {
|
||||||
|
wxPython = pyFinal.wxPython_4_2;
|
||||||
|
|
||||||
python3 = pythonOverridesFor self.python3;
|
# ROS is not compatible with empy 4
|
||||||
python3Packages = rosSelf.python3.pkgs;
|
empy = pyFinal.empy_3;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
boost = self.boost.override {
|
boost = self.boost.override {
|
||||||
python = rosSelf.python;
|
python = rosSelf.python;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue