diff --git a/pkgs/development/compilers/go/1.18.nix b/pkgs/development/compilers/go/1.18.nix index 9c95500c1917..f004b9308071 100644 --- a/pkgs/development/compilers/go/1.18.nix +++ b/pkgs/development/compilers/go/1.18.nix @@ -80,11 +80,6 @@ stdenv.mkDerivation rec { # prepend the nix path to the zoneinfo files but also leave the original value for static binaries # that run outside a nix server sed -i 's,\"/usr/share/zoneinfo/,"${tzdata}/share/zoneinfo/\"\,\n\t&,' src/time/zoneinfo_unix.go - - '' + lib.optionalString stdenv.isDarwin '' - sed -i 's,strings.Contains(.*sysctl.*,true {,' src/cmd/dist/util.go - - sed -i 's/unrecognized/unknown/' src/cmd/link/internal/ld/lib.go ''; patches = [ diff --git a/pkgs/development/compilers/go/1.19.nix b/pkgs/development/compilers/go/1.19.nix index 5248ef05826e..ca24592e93e3 100644 --- a/pkgs/development/compilers/go/1.19.nix +++ b/pkgs/development/compilers/go/1.19.nix @@ -80,11 +80,6 @@ stdenv.mkDerivation rec { # prepend the nix path to the zoneinfo files but also leave the original value for static binaries # that run outside a nix server sed -i 's,\"/usr/share/zoneinfo/,"${tzdata}/share/zoneinfo/\"\,\n\t&,' src/time/zoneinfo_unix.go - - '' + lib.optionalString stdenv.isDarwin '' - sed -i 's,strings.Contains(.*sysctl.*,true {,' src/cmd/dist/util.go - - sed -i 's/unrecognized/unknown/' src/cmd/link/internal/ld/lib.go ''; patches = [