From 5ce647b8bf7aee0d3862006d94df7878c7fc03a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 26 Jan 2023 17:08:55 +0100 Subject: [PATCH] buildGoModule: forward prePatch, postPatch and postBuild to vendoring to be more prediactable --- pkgs/build-support/go/module.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/build-support/go/module.nix b/pkgs/build-support/go/module.nix index 647f2a2f7adc..448143f76908 100644 --- a/pkgs/build-support/go/module.nix +++ b/pkgs/build-support/go/module.nix @@ -83,9 +83,12 @@ let inherit (args) src; inherit (go) GOOS GOARCH; + prePatch = args.prePatch or ""; patches = args.patches or []; patchFlags = args.patchFlags or []; + postPatch = args.postPatch or ""; preBuild = args.preBuild or ""; + postBuild = args.postBuild or ""; sourceRoot = args.sourceRoot or ""; GO111MODULE = "on";