28 Sep 2024 |
@ersei:ersei.net |
The result is produced by using the update operator //. This means nested values of previous overlays are not merged recursively. In other words, previously defined attributes are replaced, ignoring the previous value, unless referenced by the overlay; for example final: prev: { foo = final.foo + 1; }.
| 17:01:53 |
@ersei:ersei.net | *
The result is produced by using the update operator //. This means nested values of previous overlays are not merged recursively. In other words, previously defined attributes are replaced, ignoring the previous value, unless referenced by the overlay; for example final: prev: { foo = final.foo + 1; }.
| 17:02:00 |
@ersei:ersei.net | nvm I was not being smart and forgot to update my flake lockfile when making changes to my local copy | 17:11:25 |
@ersei:ersei.net | I'm not quite sure what exactly was going on but everything builds so | 17:15:48 |
@ersei:ersei.net | anyway made a pr for types-cffi https://github.com/nix-community/poetry2nix/pull/1831 | 17:23:06 |
@ersei:ersei.net | oh someone beat me to the psycopg-c pr and my fork that I was testing with included those changes https://github.com/nix-community/poetry2nix/commit/038825873c3c3c7f9e238384e7324a3e7f7a1b15 | 17:25:24 |
@ersei:ersei.net | makes sense now | 17:25:27 |
30 Sep 2024 |
Erica | Thank you ! would you know a CLI alternative to the python subprocess ? | 08:08:26 |
1 Oct 2024 |
| -_o joined the room. | 21:05:24 |
2 Oct 2024 |
| mirorred_basilisk joined the room. | 14:14:13 |
mirorred_basilisk | Hi, not sure if this is the place for this but does poetry2nix work for installing an existing github repo as a package? i.e. If there's an existing project with poetry.toml etc and I would like to write a flake to install it as a program in my config? | 14:17:48 |
K900 | You don't need a flake for this | 14:18:40 |
K900 | But it could work yes | 14:18:45 |
mirorred_basilisk | In reply to @k900:0upti.me You don't need a flake for this oh really? what's the simpler solution? | 14:19:47 |
mirorred_basilisk | Because after a lot of fiddling I've got a flake that looks like this:
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; # or a stable version
# Poetry required to build this flake
poetry2nix.url = "github:nix-community/poetry2nix";
};
outputs = { self, nixpkgs, poetry2nix }: {
packages.x86_64-linux.mypackage = with nixpkgs;
# The little incantation to use poetry2nix
let
system = "x86_64-linux";
pkgs = legacyPackages.${system};
poetry2nixLib = poetry2nix.lib.mkPoetry2Nix { inherit pkgs; };
in poetry2nixLib.mkPoetryApplication rec {
pname = "mypackage";
version = "3.2.5";
# Attempt to fetchFromGitHub as the source dir
projectDir = pkgs.fetchFromGitHub {
...
};
meta = with lib; {
...
};
};
};
}
and it's just giving me a recursion error
| 14:19:57 |
K900 | You can just define a package directly in your config | 14:20:00 |
K900 | That is possible on some packages, yes | 14:20:14 |
K900 | It could just be a poetry2nix bug | 14:20:26 |
mirorred_basilisk | In reply to @k900:0upti.me That is possible on some packages, yes getting a recursion error? | 14:20:57 |
K900 | Yes | 14:21:37 |
mirorred_basilisk | In reply to @k900:0upti.me You can just define a package directly in your config could you point me to some relevant docs? All the ones I've found seem to imply that to define a package you need to write a flake | 14:21:48 |
K900 | You can just move the contents of the flake into your config more or less unchanged | 14:22:30 |
mirorred_basilisk | oh yeah fair that's basically what i have, the flake is just a file in my config | 14:22:56 |
mirorred_basilisk | yeah okay it seems like a partially fixed issue with poetry2nix and some packages? I guess i'll make a new issue about it | 14:33:02 |
mirorred_basilisk | * yeah okay it seems like a partially fixed issue with poetry2nix and some packages? I guess i'll make a new issue about it / see if i can fix the deps | 14:33:41 |
4 Oct 2024 |
| @ryoschin:matrix.org left the room. | 22:04:24 |
8 Oct 2024 |
| schuelermine changed their profile picture. | 16:33:14 |
9 Oct 2024 |
| john joined the room. | 01:20:20 |
| ShamrockLee (Yueh-Shun Li) set a profile picture. | 14:18:28 |
| schuelermine changed their profile picture. | 23:47:10 |