### Non-Flake Usage with niv Source: https://context7.com/nix-community/poetry2nix/llms.txt Use poetry2nix in a traditional Nix setup without flakes, managing dependencies with `niv`. This example shows a `default.nix` file and setup commands. ```nix # default.nix let sources = import ./nix/sources.nix; pkgs = import sources.nixpkgs { }; poetry2nix = import sources.poetry2nix { inherit pkgs; }; myPythonApp = poetry2nix.mkPoetryApplication { projectDir = ./.; }; in myPythonApp # Setup commands: # nix-shell -p niv # niv init # niv add nix-community/poetry2nix # nix-build default.nix # ./result/bin/