!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

227 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.47 Servers

Load older messages


SenderMessageTime
12 Apr 2026
@leona:leona.isleona changed their profile picture.12:15:39
24 Apr 2026
@autra:trancart.eu@autra:trancart.eu left the room.09:45:12
@d:bugpara.de@d:bugpara.de left the room.20:52:34
26 Apr 2026
@debugloop:bugpara.dedebugloop joined the room.03:45:48
28 Apr 2026
@aangularframework:matrix.orgAangularity joined the room.04:39:28
30 Apr 2026
@msanft:matrix.orgMoritz Sanft

How do I apply a patch like this with buildGoModule? It patches go.{mod,sum}, so it would need to happen before fetching the Go modules. A primitive try like this didn't work:

(_final: prev: {
              grafana-alloy = prev.grafana-alloy.overrideAttrs (oldAttrs: {
                patches = oldAttrs.patches or [ ] ++ [
                  (prev.fetchpatch {
                    url = "https://github.com/xingzihai/alloy/commit/7fa0cbce40c5d09cec5f6b45a10de823ec0c9732.patch";
                    hash = "sha256-uyGhNiIE09tkMekJ+Wm+CBfT0q2RmEPRAwOk/BaZQSk=";
                  })
                ];
                vendorHash = "...";
              });
            })
07:50:23
@msanft:matrix.orgMoritz Sanft

^ Solution was to do:

patchPhase = ''
                    patch -p1 < ${m1cpuPatch}
                  ''

Not sure if this is due to grafana-alloy having a custom patchPhase.

08:12:10
@isabel:isabelroses.comisabel changed their profile picture.18:46:54
3 May 2026
@isabel:isabelroses.comisabel changed their profile picture.10:38:42
4 May 2026
@rasmata:matrix.org@rasmata:matrix.org joined the room.22:08:44
@rasmata:matrix.org@rasmata:matrix.org left the room.22:08:53
7 May 2026
@j-k:matrix.orgj-k yes, it shouldn't completely replace the patchPhase it should do a prePatch or a postPatch. Especially when it's just to feed a constant at buildtime... 13:53:41
9 May 2026
@whispers:catgirl.cloudwhispers [& it/fae] joined the room.16:21:26
1 Aug 2023
@cafkafk:nixos.devChristina Sørensen joined the room.11:11:02
8 Aug 2023
@qbit:tapenet.org@qbit:tapenet.org \o/ 1.21.0 16:08:13
9 Aug 2023
@aog_:matrix.orgaog joined the room.15:54:44
13 Aug 2023
@10leej:matrix.orgnevoyu joined the room.01:25:24
@katexochen:matrix.orgPaul Meyer (katexochen) joined the room.11:48:05
14 Aug 2023
@arnoldanderson:matrix.org[a4]nd[e3]r[s5][o0]n changed their profile picture.09:02:42
15 Aug 2023
@cafkafk:nixos.devChristina Sørensen changed their profile picture.14:57:57
@10leej:matrix.orgnevoyu left the room.19:34:19
17 Aug 2023
@atalii:matrix.org@atalii:matrix.org j-k: 14:31:49
@arnoldanderson:matrix.org[a4]nd[e3]r[s5][o0]n changed their display name from 4nd3rs0n to [4a]nd[e3]r[s5][o0]n.17:43:30
@arnoldanderson:matrix.org[a4]nd[e3]r[s5][o0]n changed their display name from [4a]nd[e3]r[s5][o0]n to [a4]nd[e3]r[s5][o0]n.17:43:53
19 Aug 2023
@qbit:tapenet.org@qbit:tapenet.org/me shakes his fist at stuck unread notifications12:38:53
20 Aug 2023
@katexochen:matrix.orgPaul Meyer (katexochen) set a profile picture.12:47:29
23 Aug 2023
@benjaminedwardwebb:envs.netbenjaminedwardwebb joined the room.16:42:14
24 Aug 2023
@antifuchs:asf.computerantifuchs joined the room.12:55:25
@antifuchs:asf.computerantifuchsSo with the release of go 1.21, where do people get their go_1_21 toolchain attributes from? Is there a collection of versions like oxalica/rust-overlay but for go?13:10:31
@qbit:tapenet.org@qbit:tapenet.orgit's in unstable atm13:12:55

Show newer messages


Back to Room ListRoom Version: 9