!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

230 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.49 Servers

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


SenderMessageTime
3 Sep 2024
@jrick:zettaport.comjrickoh it's a cross compile, yeah i haven't figured that out yet21:31:16
@nazarewk:matrix.orgkdnI just want to "quickly" compile patched versions while debugging, it's quite tedious to manually patch the source repo each time21:32:18
@nazarewk:matrix.orgkdnI'm going to sleep now, building it non-nix way using https://github.com/nazarewk-iac/nix-configs/commit/b716351243bca4a0a57a38f34a8d939d86984bce21:53:38
@nazarewk:matrix.orgkdn * I'm going to sleep now, built it non-nix way using https://github.com/nazarewk-iac/nix-configs/commit/b716351243bca4a0a57a38f34a8d939d86984bce21:53:49
4 Sep 2024
@booxter:matrix.orgIhar Hrachyshka joined the room.23:41:27
8 Sep 2024
@diamondburned:matrix.orgdiamond (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

Show newer messages


Back to Room ListRoom Version: 9