forked from mirrors/nixpkgs
go: prePatch -> postPatch
- also drop previous postPatch
This commit is contained in:
parent
cec343a189
commit
8eadecd9bf
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue