Skip to content

Commit

Permalink
4
Browse files Browse the repository at this point in the history
  • Loading branch information
OatmealDome committed Dec 19, 2024
1 parent 4ecfe70 commit 8157030
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,28 @@

outputs = { self, nixpkgs, flake-utils, poetry2nix }: {
overlay = nixpkgs.lib.composeManyExtensions [
poetry2nix.overlays.default
# Manually override wheel package to 0.45.1 until the change lands in nixos-24.11
# https://github.com/NixOS/nixpkgs/pull/361930
(final: prev: {
central = prev.poetry2nix.mkPoetryApplication {
projectDir = ./.;
overrides = prev.poetry2nix.defaultPoetryOverrides.extend (self: super: {
pypeul = super.pypeul.overridePythonAttrs (old: { buildInputs = (old.buildInputs or []) ++ [ super.poetry-core ]; });
# Manually override wheel package to 0.45.1 until the change lands in nixos-24.11
# https://github.com/NixOS/nixpkgs/pull/361930
wheel = super.wheel.overridePythonAttrs (old: {
pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [
(python-final: python-prev: {
wheel = python-prev.wheel.overrideAttrs (oldAttrs: {
version = "0.45.1";
src = old.src.override {

src = oldAttrs.src.override {
rev = "refs/tags/0.45.1";
hash = "sha256-tgueGEWByS5owdA5rhXGn3qh1Vtf0HGYC6+BHfrnGAs=";
};
});
setuptools = super.setuptools.overridePythonAttrs (old: {
version = "75.2.0";
src = old.src.override {
rev = "refs/tags/75.2.0";
};
});
})
];
})
poetry2nix.overlays.default
(final: prev: {
central = prev.poetry2nix.mkPoetryApplication {
projectDir = ./.;
overrides = prev.poetry2nix.defaultPoetryOverrides.extend (self: super: {
pypeul = super.pypeul.overridePythonAttrs (old: { buildInputs = (old.buildInputs or []) ++ [ super.poetry-core ]; });
});
};
})
Expand Down

0 comments on commit 8157030

Please sign in to comment.