Use modern approach for overriding python modules
This commit is contained in:
parent
fcd0dc1d75
commit
c5921e5c11
10
default.nix
10
default.nix
|
@ -4,16 +4,12 @@ let
|
|||
|
||||
callPythonPackage = prev.python3Packages.callPackage;
|
||||
in
|
||||
{
|
||||
python3 = prev.python3.override {
|
||||
packageOverrides = final: prev:
|
||||
{
|
||||
rec {
|
||||
pythonPackagesExtensions = prev.pythonPackagesExtensions ++ (prev.lib.singleton (final: prev: {
|
||||
enlighten = callPythonPackage ./python-modules/enlighten { };
|
||||
|
||||
prefixed = callPythonPackage ./python-modules/prefixed { };
|
||||
};
|
||||
};
|
||||
python3Packages = prev.recurseIntoAttrs final.python3.pkgs;
|
||||
}));
|
||||
|
||||
afancontrol = callPythonPackage ./afancontrol { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue