From 6285da30c01e93affb30c576ac9b01dd76c4a14d Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Mon, 8 Aug 2022 09:27:52 +1000 Subject: [PATCH] go: remove outdated seds --- pkgs/development/compilers/go/1.18.nix | 5 ----- pkgs/development/compilers/go/1.19.nix | 5 ----- 2 files changed, 10 deletions(-) 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 = [