From d0eaa3fcc6ab8bd5eb86190c9f18fdf793d3251a Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Wed, 18 Dec 2024 18:50:30 -0500 Subject: [PATCH] flake: Use pythonPackagesExtensions to override wheel version --- flake.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index fc39f9f..5782df2 100644 --- a/flake.nix +++ b/flake.nix @@ -10,10 +10,10 @@ overlay = nixpkgs.lib.composeManyExtensions [ # Manually override wheel package to 0.45.1 until the change lands in nixos-24.11 # https://github.com/NixOS/nixpkgs/pull/361930 - (self: super: rec { - python3 = super.python3.override { - packageOverrides = python-self: python-super: { - wheel = python-super.wheel.overridePythonAttrs (oldAttrs: rec { + (final: prev: { + pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [ + (python-final: python-prev: { + wheel = python-prev.wheel.overrideAttrs (oldAttrs: { version = "0.45.1"; src = oldAttrs.src.override { @@ -21,8 +21,8 @@ hash = "sha256-tgueGEWByS5owdA5rhXGn3qh1Vtf0HGYC6+BHfrnGAs="; }; }); - }; - }; + }) + ]; }) poetry2nix.overlays.default (final: prev: {