!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

218 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.46 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

There are no newer messages yet.


Back to Room ListRoom Version: 9