go: prePatch -> postPatch

- also drop previous postPatch

zowoq 8eadecd9 cec343a1

Changed files
+2 -10
pkgs
development
compilers
+1 -5
pkgs/development/compilers/go/1.18.nix
···
hardeningDisable = [ "all" ];
-
prePatch = ''
patchShebangs ./ # replace /bin/bash
# Patch the mimetype database location which is missing on NixOS.
···
./ssl-cert-file-1.16.patch
./go_no_vendor_checks-1.16.patch
];
-
-
postPatch = ''
-
find . -name '*.orig' -exec rm {} ';'
-
'';
GOOS = stdenv.targetPlatform.parsed.kernel.name;
GOARCH = goarch stdenv.targetPlatform;
···
hardeningDisable = [ "all" ];
+
postPatch = ''
patchShebangs ./ # replace /bin/bash
# Patch the mimetype database location which is missing on NixOS.
···
./ssl-cert-file-1.16.patch
./go_no_vendor_checks-1.16.patch
];
GOOS = stdenv.targetPlatform.parsed.kernel.name;
GOARCH = goarch stdenv.targetPlatform;
+1 -5
pkgs/development/compilers/go/1.19.nix
···
hardeningDisable = [ "all" ];
-
prePatch = ''
patchShebangs ./ # replace /bin/bash
# Patch the mimetype database location which is missing on NixOS.
···
./ssl-cert-file-1.16.patch
./go_no_vendor_checks-1.16.patch
];
-
-
postPatch = ''
-
find . -name '*.orig' -exec rm {} ';'
-
'';
GOOS = stdenv.targetPlatform.parsed.kernel.name;
GOARCH = goarch stdenv.targetPlatform;
···
hardeningDisable = [ "all" ];
+
postPatch = ''
patchShebangs ./ # replace /bin/bash
# Patch the mimetype database location which is missing on NixOS.
···
./ssl-cert-file-1.16.patch
./go_no_vendor_checks-1.16.patch
];
GOOS = stdenv.targetPlatform.parsed.kernel.name;
GOARCH = goarch stdenv.targetPlatform;