Poetry2nix | 314 Members | |
| https://github.com/nix-community/poetry2nix | 59 Servers |
| Sender | Message | Time |
|---|---|---|
| 22 Nov 2023 | ||
I'm in the midst of fixing the "fallout" from removal of poetry2nix from nixpkgs for my xls2latex package, but I'm getting a bit confused (partly because of multi-layered flakes/shells). So now I have this flake, aiming to achieve the "sweet spot" of being compatible with non-flake usage (fetchFromGithub) and having the necessary flake outputs to do seamless development on it (repo devShell) and inclusion in user deployments, preferrably via overlay so the user can call it as a normal pkgs.xls2latex.Now I'm looking for advice:
| 14:32:25 | |
In a consumer of the mentioned flake:`nix{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; inputs = { flake-utils.url = "github:numtide/flake-utils"; xls2latex = { url = "github:ppenguin/xls2latex/fix-external-poetry2nix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } error: function 'anonymous lambda' called without required argument 'lib' | 14:36:49 | |
In a consumer of the mentioned flake:`nix{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; inputs = { flake-utils.url = "github:numtide/flake-utils"; xls2latex = { url = "github:ppenguin/xls2latex/fix-external-poetry2nix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } | 14:37:01 | |
In a consumer of the mentioned flake:`nix{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; inputs = { flake-utils.url = "github:numtide/flake-utils"; xls2latex = { url = "github:ppenguin/xls2latex/fix-external-poetry2nix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } `but I get an error: | 14:37:22 | |
In a consumer of the mentioned flake:`nix{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; inputs = { flake-utils.url = "github:numtide/flake-utils"; xls2latex = { url = "github:ppenguin/xls2latex/fix-external-poetry2nix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } `but I get an error: | 14:37:32 | |
In a consumer of the mentioned flake:`nix{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; inputs = { flake-utils.url = "github:numtide/flake-utils"; xls2latex = { url = "github:ppenguin/xls2latex/fix-external-poetry2nix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } `but I get an error: | 14:37:57 | |
In a consumer of the mentioned flake:`nix{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; inputs = { flake-utils.url = "github:numtide/flake-utils"; xls2latex = { url = "github:ppenguin/xls2latex/fix-external-poetry2nix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } ` | 14:38:30 | |
In a consumer of the mentioned flake:`{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; inputs = { flake-utils.url = "github:numtide/flake-utils"; xls2latex = { url = "github:ppenguin/xls2latex/fix-external-poetry2nix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } ` | 14:38:41 | |
In a consumer of the mentioned flake:`{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; inputs = { flake-utils.url = "github:numtide/flake-utils"; xls2latex = { url = "github:ppenguin/xls2latex/fix-external-poetry2nix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } ` | 14:39:04 | |
In a consumer of the mentioned flake: | 14:39:36 | |
In a consumer of the mentioned flake:`nix{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; inputs = { flake-utils.url = "github:numtide/flake-utils"; xls2latex = { url = "github:ppenguin/xls2latex/fix-external-poetry2nix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } ` | 14:40:24 | |
In a consumer of the mentioned flake:`nix{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; ... outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } ` | 14:41:02 | |
In a consumer of the mentioned flake:`nix{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; ... outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } ` | 14:41:17 | |
In a consumer of the mentioned flake:`nix{ description = "Complete self-contained pandoc(omatic) flake with templates etc."; ... outputs = inputs@{ self, nixpkgs, flake-utils, xls2latex }: flake-utils.lib.eachDefaultSystem (system: let # pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { overlays = [ (import xls2latex {}).overlays.xls2latex ]; inherit system; }; in { devShells.default = import ./nix/pandoc-shell.nix { inherit pkgs; }; } ); } ` | 14:41:30 | |
In a consumer of the mentioned flake: | 14:41:50 | |
In a consumer of the mentioned flake: | 14:42:28 | |
In a consumer of the mentioned flake: | 14:45:47 | |
| Redacted or Malformed Event | 15:05:54 | |
Following this pattern I managed to solve the error, the only funky thing(?) now is that I have flake outputs like this: overlays.${system}.default, which seems a bit unusual, but I need pkgs (system dependent) for the callPackage, so chicken & egg problem? | 15:12:48 | |
| 23 Nov 2023 | ||
| 03:23:36 | ||
I'm trying to use the development shell generated by the poetry2nix template, but when I run poetry add ... I get [org.freedesktop.DBus.Error.UnknownObject] ("No such object path '/org/freedesktop/secrets/aliases/default'",). Is this likely to be an issue with my host configuration, or is this a bug? (in case it's helpful, my host configuration can be found here: https://github.com/jsimonrichard/nix-config) | 03:27:04 | |
| Simon Richard: Not entirely sure this is the same issue I had, but I have
on my dev shell… | 03:48:15 | |
Thanks, that worked! However, the second time I ran nix develop I got the error attribute 'format' missing. I think it's being caused by the pypoetry.toml file or the poetry.lock file since those are the only files that have changed since the first time I ran nix develop. Any thoughts? | 14:56:48 | |
| 25 Nov 2023 | ||
| 15:56:35 | ||
| 28 Nov 2023 | ||
| 14:30:58 | ||
| Hey all, is there a newer way to add overrides that isn't in the docs? I keep getting errors that both | 14:31:48 | |
Is poetry2nix your flake? | 15:58:08 | |
| * Is poetry2nix your flake input? | 15:58:14 | |
| Check the flake example in the repo | 15:58:20 | |
| 29 Nov 2023 | ||
In reply to @k900:0upti.meIt was my misunderstanding of how scope works in nix. I got past that, but now there are other problems :( | 15:58:06 | |