From c5921e5c119c7b6ccc708b70de2d6110da12feb7 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 12 Aug 2023 12:15:09 +0200 Subject: [PATCH] Use modern approach for overriding python modules --- default.nix | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/default.nix b/default.nix index deb024a..d923c4d 100644 --- a/default.nix +++ b/default.nix @@ -4,16 +4,12 @@ let callPythonPackage = prev.python3Packages.callPackage; in -{ - python3 = prev.python3.override { - packageOverrides = final: prev: - { - enlighten = callPythonPackage ./python-modules/enlighten { }; +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; + prefixed = callPythonPackage ./python-modules/prefixed { }; + })); afancontrol = callPythonPackage ./afancontrol { };