Override poetry2nix mkPoetryApplication projectDir attribute

Hello,

I use a package that is implemented using poetry2nix’s mkPoetryApplication with projectDir = self. This results in build failure with current nix version (2.22.1) – old versions work. The failure can be overcome if the projectDir = ./.;. I have tried to override the attribute in a flake – with my-package-input defined as a flake input – like this in a devShell

buildInputs = [
	(my-package-input.packages.${system}.my-package.overrideAttrs (oldAttrs: {
	  projectDir = ./.;
	}))
]

without success.

Thoughts and suggestions welcome, thanks!