| 3 Sep 2024 |
jrick | oh it's a cross compile, yeah i haven't figured that out yet | 21:31:16 |
kdn | I just want to "quickly" compile patched versions while debugging, it's quite tedious to manually patch the source repo each time | 21:32:18 |
kdn | I'm going to sleep now, building it non-nix way using https://github.com/nazarewk-iac/nix-configs/commit/b716351243bca4a0a57a38f34a8d939d86984bce | 21:53:38 |
kdn | * I'm going to sleep now, built it non-nix way using https://github.com/nazarewk-iac/nix-configs/commit/b716351243bca4a0a57a38f34a8d939d86984bce | 21:53:49 |
| 4 Sep 2024 |
| Ihar Hrachyshka joined the room. | 23:41:27 |
| 8 Sep 2024 |
diamond (it/its) | In reply to@nazarewk:matrix.org
How can I build a statically linked (portable) Go program on amd64 for armv6 architecture using Nix?
- this doesn't work https://github.com/nazarewk-iac/nix-configs/commit/454b1cbd6729d1c6183b4e1b1cadbf4343797ba9
- running
GOARM=6 GOARCH=arm CGO_ENABLED=0 go build -o netbird ./client inside source repo seems to work fine
you can try something like this https://github.com/diamondburned/gotk4-nix/blob/main/build-cross-package.nix#L72-L76 | 08:24:29 |