| 18 Aug 2025 |
dramforever | like, i mean, how do i know i got the wrong yaml-merge | 15:23:59 |
dramforever | oh, i get a non-cross'd yaml-merge | 15:26:36 |
Artturin | pkgsCross.aarch64-multiplatform.yaml-merge and check the shell wrapper and python wrapper shebangs | 15:29:55 |
dramforever | i got it | 15:30:04 |
dramforever | but then this feels like an intentional design to me | 15:30:18 |
Artturin | It's not | 15:30:37 |
Artturin | yaml-merge is run in the systemd service itself, not during the system build | 15:30:59 |
dramforever | i mean the wrapPython thing | 15:31:10 |
dramforever | it makes you get the right thing for python3Packages.callPackage | 15:31:12 |
dramforever | which gives you non-spliced python packages | 15:31:20 |
dramforever | maybe this part is not intentional design | 15:31:31 |
dramforever | i mean maybe python3Packages.callPackage is doing the wrong thing | 15:31:55 |
Artturin | It's a bug that the python hooks are one offset off | 15:32:22 |
dramforever | that's what i mean, i'm not sure it's a bug | 15:32:53 |
Artturin | It's a workaround which works around a another limitation | 15:34:24 |
dramforever | that i agree | 15:34:32 |
Artturin | Follow the issue link in https://github.com/NixOS/nixpkgs/issues/434307 | 15:34:34 |
Artturin | * pr link | 15:34:44 |
Artturin | * * pr link in the body | 15:34:48 |
Artturin | It's quite complicated and I'm not sure why the hooks are spliced wrong out of the scope | 15:36:23 |
dramforever | do you think pkgsCross.*.python3Packages.callPackage should provide a spliced wrapPython? | 15:37:25 |
dramforever | for the record i have no idea | 15:38:14 |
Artturin | https://github.com/NixOS/nixpkgs/pull/228139 would make it provide a spliced wrapPython, however yaml-merge doesn't use python3Packages.callPackage | 15:38:17 |
dramforever | i think if it provides spliced wrapPython, then we have to fix the offsets (#434307), and it will make yaml-merge work, so i'm probably thinking something wrong | 15:40:27 |
Artturin | https://github.com/NixOS/nixpkgs/blob/62ef08e9a4d536471ab381a7ae39d38dc79b23a3/lib/customisation.nix#L717 the keep makes the attrs not spliced inside the scope | 15:40:31 |
Artturin | Actually hmm | 15:42:17 |
Artturin | * Maybe the self there is the reason why the python has wrong offsets | 15:43:43 |
dramforever | also the workaround in yaml-merge should probably just be pkgsHostTarget.python3Packages.wrapPython | 15:44:13 |
dramforever | i'll put that on the pr | 15:44:58 |
dramforever | wrapPython is "a bit like" stdenv | 15:47:43 |