go: prePatch -> postPatch

- also drop previous postPatch
This commit is contained in:
zowoq
2022-08-16 18:53:29 +10:00
parent cec343a189
commit 8eadecd9bf
2 changed files with 2 additions and 10 deletions
+1 -5
View File
@@ -67,7 +67,7 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "all" ];
prePatch = ''
postPatch = ''
patchShebangs ./ # replace /bin/bash
# Patch the mimetype database location which is missing on NixOS.
@@ -93,10 +93,6 @@ stdenv.mkDerivation rec {
./go_no_vendor_checks-1.16.patch
];
postPatch = ''
find . -name '*.orig' -exec rm {} ';'
'';
GOOS = stdenv.targetPlatform.parsed.kernel.name;
GOARCH = goarch stdenv.targetPlatform;
# GOHOSTOS/GOHOSTARCH must match the building system, not the host system.
+1 -5
View File
@@ -67,7 +67,7 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "all" ];
prePatch = ''
postPatch = ''
patchShebangs ./ # replace /bin/bash
# Patch the mimetype database location which is missing on NixOS.
@@ -93,10 +93,6 @@ stdenv.mkDerivation rec {
./go_no_vendor_checks-1.16.patch
];
postPatch = ''
find . -name '*.orig' -exec rm {} ';'
'';
GOOS = stdenv.targetPlatform.parsed.kernel.name;
GOARCH = goarch stdenv.targetPlatform;
# GOHOSTOS/GOHOSTARCH must match the building system, not the host system.