!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

216 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.51 Servers

Load older messages


SenderMessageTime
1 Jul 2025
@opna2608:matrix.orgPunasupport for POWER < 8 got dropped, and those systems are the only ones that are affordable, and where using big-endian really made sense09:34:11
@k900:0upti.meK900Yeeeeeeeeeeah09:34:51
@diamondburned:matrix.orgDiamond (it/she)on a basic system i dont think theres much youd miss out, more than that it depends on what youll use it for21:00:09
@diamondburned:matrix.orgDiamond (it/she)like a lot of web stuff are in Go for example21:00:17
@diamondburned:matrix.orgDiamond (it/she)https://groups.google.com/g/golang-dev/c/5ZKcPsDo1fg?pli=121:01:24
@diamondburned:matrix.orgDiamond (it/she)it sucks bc iant left all Go development efforts internally so this probably won't be coming anytime soon...21:01:43
2 Jul 2025
@opna2608:matrix.orgPuna i'm building my way from stdenv to various things necessary for an average system, so anything that's written in Go along the way. so far it's only been necessary for some optional tools in libcap, which did seem to build just fine with the compiler. 10:39:00
3 Jul 2025
@jsnf:matrix.orgjsnf

Suppose you are packaging a go project that used go version 1.24.4 ( declared in the go.mod)

Would you use BuildGoModule or BuildGo124Module?

The project will upgrade go versions according to new releases

12:56:24
@jsnf:matrix.orgjsnf * Suppose you are packaging a go project that uses go version 1.24.4 ( declared in the go.mod)
Would you use BuildGoModule or BuildGo124Module?
The project will upgrade go versions according to new releases
12:56:33
@jsnf:matrix.orgjsnf * Suppose you are packaging a go project that uses go version 1.24.4 ( declared in the go.mod)

Would you use BuildGoModule or BuildGo124Module?

The project will upgrade go versions according to new releases
12:56:45
@jsnf:matrix.orgjsnf Its for nixpkgs 12:57:27
@jrick:zettaport.comjrickdunno the nixpkgs policy but i would only specify the version if the current version was too low12:57:35
@jsnf:matrix.orgjsnf So according to which go version is used in the latest release or unstable channel? 12:58:45
@jrick:zettaport.comjrickor maybe even patch the go.mod version...12:59:27
@jrick:zettaport.comjricki don't know if there are any hard rules about how to deal with it, but i'm sure the reviewers will give their opinions13:00:45
@jsnf:matrix.orgjsnfSadly cant do that as its not my project but something im packaging for others haha13:00:52
@jsnf:matrix.orgjsnfYeaa13:01:01
@jsnf:matrix.orgjsnfThank you tho, preciate your help13:01:15
@katexochen:matrix.orgPaul Meyer (katexochen)policy documented here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/go/README.md14:15:03
@katexochen:matrix.orgPaul Meyer (katexochen)you should use buildGoModule where ever possible (with some minor exceptions)14:15:34
@katexochen:matrix.orgPaul Meyer (katexochen)Shouldn't be a problem to substitute the go/toolchain version in go.mod from x.x.x to x.x.0 if needed.14:16:59
@katexochen:matrix.orgPaul Meyer (katexochen)There is also a section in the manual on versioned builders: https://nixos.org/manual/nixpkgs/unstable/#ssec-go-toolchain-versions14:18:38
5 Jul 2025
@jsnf:matrix.orgjsnfAhhh got it, thank you so much!15:39:19
10 Jul 2025
@aerunakai:matrix.org@aerunakai:matrix.org joined the room.05:46:05
@nazarewk:matrix.orgnazarewkis there a way to build system-independent Go binaries on NixOS? I'm trying to build an Alpine container that requires passing the binary externally and getting those pesky file not founds19:08:33
@curid:matrix.orgCurid why not use a scratch base instead of alpine? 19:10:47
@nazarewk:matrix.orgnazarewk could probably design it around scratch some time in the future, but right now I need to create an entrypoint bash script for the app and that's it 19:12:08
@curid:matrix.orgCurid should be distro independent if you set CGO_ENABLE=0 19:14:08
@jrick:zettaport.comjricknot necessarily. enabling pie will still use the dynamic loader19:16:24
@jrick:zettaport.comjrickbut you can override the path to the dynamic loader, and force it to use the standard path to the musl one which will work on alpine19:17:07

Show newer messages


Back to Room ListRoom Version: 9