3
0
Fork 0
forked from mirrors/nixpkgs

go: prePatch -> postPatch

- also drop previous postPatch
This commit is contained in:
zowoq 2022-08-08 09:29:48 +10:00
parent cec343a189
commit 8eadecd9bf
2 changed files with 2 additions and 10 deletions

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.

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.