Skip to content

Commit

Permalink
flake: Use pythonPackagesExtensions to override wheel version
Browse files Browse the repository at this point in the history
  • Loading branch information
OatmealDome committed Dec 19, 2024
1 parent 96a1285 commit d0eaa3f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
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 {
rev = "refs/tags/0.45.1";
hash = "sha256-tgueGEWByS5owdA5rhXGn3qh1Vtf0HGYC6+BHfrnGAs=";
};
});
};
};
})
];
})
poetry2nix.overlays.default
(final: prev: {
Expand Down

0 comments on commit d0eaa3f

Please # to comment.