!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1159 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org186 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
30 Dec 2025
@nazarewk:matrix.orgkdn

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
@nazarewk:matrix.orgkdn

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
@nazarewk:matrix.orgkdn *

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
@nazarewk:matrix.orgkdndon'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 find19:25:51
@winter:catgirl.cloudWintercan you share what you’re trying to build?19:30:17
@nazarewk:matrix.orgkdnlet me tag a wip commit and submit then19:32:05
@winter:catgirl.cloudWinteri forget bash’s behavior off the top of my head but the line thing might be a misnomer19:33:44
@winter:catgirl.cloudWintereasier to tell if i can see the expression19:33:53
@nazarewk:matrix.orgkdn 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
@nazarewk:matrix.orgkdnI'll try identify the change thta makes it break tomorrow, gotta run now 19:41:43
@winter:catgirl.cloudWinterwhy are you vendoring the whole linux builder stuff?19:42:50
@nazarewk:matrix.orgkdni need specialArgs in there to use my own modules19:43:47
@nazarewk:matrix.orgkdnthere is no way to pass those in the built-in builder19:44:53
@nazarewk:matrix.orgkdn *

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
@nazarewk:matrix.orgkdn *

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:catgirl.cloudWinter nix.linux-builder.config if you’re using nix-darwin, or pkgs.linux-builder.override (old: { modules = old.modules + [ … ]; }) otherwise 19:46:42
@winter:catgirl.cloudWinter you can use _module.args 19:47:20
@winter:catgirl.cloudWintersorry, that first part of the answer was superfluous19:47:55
@nazarewk:matrix.orgkdn
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:catgirl.cloudWinter _module.args doesn’t fit your needs? 19:48:47
@nazarewk:matrix.orgkdnno, it cannot be used for conditional imports and pre-resolving snippets19:49:27
@winter:catgirl.cloudWinterah.19:50:05
@nazarewk:matrix.orgkdn 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:catgirl.cloudWinteryep19:50:23
@winter:catgirl.cloudWinter can i see a nix derivation show for the drv that failed to build? 19:53:39
@nazarewk:matrix.orgkdni tried skipping my nixosModules.default import, but got other even weirder error there19:53:40

Show newer messages


Back to Room ListRoom Version: 6