| 30 Dec 2025 |
kdn | I'm getting a weird error:
/nix/store/yzhl36k6yxfafrvddhqjbwzvmwlyx4iq-stdenv-linux/setup: line 1828: wrapProgram: command not found when building a custom linux-builder on darwin The file doesn't even have 1828 lines (there are 1818)
Any ideas?
| 18:58:07 |
kdn | The nom output is:
nixos-system-nixos-26.05pre-git-aarch64-linux> building '/nix/store/5bigxazp5irndr1kk3j8nlis6bd3z2mr-nixos-system-nixos-26.05pre-git.drv'
nixos-system-nixos-26.05pre-git-aarch64-linux> /nix/store/yzhl36k6yxfafrvddhqjbwzvmwlyx4iq-stdenv-linux/setup: line 1828: wrapProgram: command not found
| 19:00:15 |
kdn | * The nom output is:
nixos-system-nixos-26.05pre-git-aarch64-linux> building '/nix/store/5bigxazp5irndr1kk3j8nlis6bd3z2mr-nixos-system-nixos-26.05pre-git.drv' on 'ssh-ng://builder@linux-builder'
copying 0 paths
nixos-system-nixos-26.05pre-git-aarch64-linux> building '/nix/store/5bigxazp5irndr1kk3j8nlis6bd3z2mr-nixos-system-nixos-26.05pre-git.drv'
nixos-system-nixos-26.05pre-git-aarch64-linux> /nix/store/yzhl36k6yxfafrvddhqjbwzvmwlyx4iq-stdenv-linux/setup: line 1828: wrapProgram: command not found
| 19:00:34 |
kdn | don't really have any idea how to debug it, the error seems to come from some underlying script that i don't know how to find | 19:25:51 |
Winter | can you share what you’re trying to build? | 19:30:17 |
kdn | let me tag a wip commit and submit then | 19:32:05 |
Winter | i forget bash’s behavior off the top of my head but the line thing might be a misnomer | 19:33:44 |
Winter | easier to tell if i can see the expression | 19:33:53 |
kdn | this is the change I'm doing, I will maybe revise whether I need that custom module system at all there for the builder (it's nice to set everything up exactly the same way as all my other modules), I don't think anything that is not enabled in my set of modules would do anything funny | 19:40:18 |
kdn | I'll try identify the change thta makes it break tomorrow, gotta run now | 19:41:43 |
Winter | why are you vendoring the whole linux builder stuff? | 19:42:50 |
kdn | i need specialArgs in there to use my own modules | 19:43:47 |
kdn | there is no way to pass those in the built-in builder | 19:44:53 |
kdn | * there is no way to pass those in the built-in builder
maybe i'll just make an upstream patch to make those configurable | 19:45:37 |
kdn | * there is no way to pass those in the built-in builder
maybe i'll just make an upstream patch to make those configurable instead | 19:45:48 |
Winter | nix.linux-builder.config if you’re using nix-darwin, or pkgs.linux-builder.override (old: { modules = old.modules + [ … ]; }) otherwise | 19:46:42 |
Winter | you can use _module.args | 19:47:20 |
Winter | sorry, that first part of the answer was superfluous | 19:47:55 |
kdn | In reply to @winter:catgirl.cloud
nix.linux-builder.config if you’re using nix-darwin, or pkgs.linux-builder.override (old: { modules = old.modules + [ … ]; }) otherwise except i cannot pass my kdnConfig specialArg which i use to make OS/module-specific snippets and conditional imports | 19:48:11 |
Winter | _module.args doesn’t fit your needs? | 19:48:47 |
kdn | no, it cannot be used for conditional imports and pre-resolving snippets | 19:49:27 |
Winter | ah. | 19:50:05 |
kdn | if i add the non-existing config in mkIf it throws an error, so i need to use raw if on those | 19:50:17 |
Winter | yep | 19:50:23 |
Winter | can i see a nix derivation show for the drv that failed to build? | 19:53:39 |
kdn | i tried skipping my nixosModules.default import, but got other even weirder error there | 19:53:40 |