Open madsamjp opened 2 weeks ago
You need to put an overlay on your nixpkgs, otherwise pkgs.poetry2nix is still the originial nixpkgs 'just-the-error-message' one.
The docs have this snippet:
pkgs = nixpkgs.legacyPackages.${system}.extend poetry2nix.overlays.default;
myPythonApp = pkgs.poetry2nix.mkPoetryApplication { projectDir = self; };
but I think you can get away wit putting poetry2nix.overlays.default; in your overlays.
I see this error has reference here and here but I cant seem to figure out what I'm doing differently.
I'm trying to add a python poetry package to my Nixos configuration. It's not available in the nixpkgs collection. I want to be able to install this package on my system with
pkgs.example_package
. Here is an example of a package I tried to install from this tutorial:I've added poetry2nix as an input to my flake.nix:
I call the package:
Then in my configuration I want to install the package:
but I get: error: poetry2nix is now maintained out-of-tree. Please use https://github.com/nix-community/poetry2nix/
I've read through the documentation and other people's configurations, but I cant seem to find any working examples similar to what I want to achieve.
Any assistance would be greatly appreciated.