Use modern approach for overriding python modules

This commit is contained in:
Simon Bruder 2023-08-12 12:15:09 +02:00
parent fcd0dc1d75
commit c5921e5c11
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -4,16 +4,12 @@ let
callPythonPackage = prev.python3Packages.callPackage; callPythonPackage = prev.python3Packages.callPackage;
in in
{ rec {
python3 = prev.python3.override { pythonPackagesExtensions = prev.pythonPackagesExtensions ++ (prev.lib.singleton (final: prev: {
packageOverrides = final: prev:
{
enlighten = callPythonPackage ./python-modules/enlighten { }; enlighten = callPythonPackage ./python-modules/enlighten { };
prefixed = callPythonPackage ./python-modules/prefixed { }; prefixed = callPythonPackage ./python-modules/prefixed { };
}; }));
};
python3Packages = prev.recurseIntoAttrs final.python3.pkgs;
afancontrol = callPythonPackage ./afancontrol { }; afancontrol = callPythonPackage ./afancontrol { };