diff options
author | Artur Cygan <arczicygan@gmail.com> | 2021-10-21 18:11:46 +0200 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2021-10-22 09:04:12 +1000 |
commit | 9a0676dc4866128463c4cd83a20ad10384d6824f (patch) | |
tree | 93248450f13eae3c0af4aca9db4a57bacc2d47bb | |
parent | be04d53db2536d4e13ebb37023bc405a724ad447 (diff) | |
download | nixpkgs-9a0676dc4866128463c4cd83a20ad10384d6824f.tar nixpkgs-9a0676dc4866128463c4cd83a20ad10384d6824f.tar.gz nixpkgs-9a0676dc4866128463c4cd83a20ad10384d6824f.tar.bz2 nixpkgs-9a0676dc4866128463c4cd83a20ad10384d6824f.tar.lz nixpkgs-9a0676dc4866128463c4cd83a20ad10384d6824f.tar.xz nixpkgs-9a0676dc4866128463c4cd83a20ad10384d6824f.tar.zst nixpkgs-9a0676dc4866128463c4cd83a20ad10384d6824f.zip |
go: use tzdata from Nix on Darwin
-rw-r--r-- | pkgs/development/compilers/go/1.15.nix | 1 | ||||
-rw-r--r-- | pkgs/development/compilers/go/1.16.nix | 1 | ||||
-rw-r--r-- | pkgs/development/compilers/go/1.17.nix | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/pkgs/development/compilers/go/1.15.nix b/pkgs/development/compilers/go/1.15.nix index f9bba06d633..8908c6afceb 100644 --- a/pkgs/development/compilers/go/1.15.nix +++ b/pkgs/development/compilers/go/1.15.nix @@ -124,7 +124,6 @@ stdenv.mkDerivation rec { # Disable cgo lookup tests not works, they depend on resolver rm src/net/cgo_unix_test.go - '' + lib.optionalString stdenv.isLinux '' # 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 diff --git a/pkgs/development/compilers/go/1.16.nix b/pkgs/development/compilers/go/1.16.nix index acd04c24a3b..433d3f9af7a 100644 --- a/pkgs/development/compilers/go/1.16.nix +++ b/pkgs/development/compilers/go/1.16.nix @@ -126,7 +126,6 @@ stdenv.mkDerivation rec { # Disable cgo lookup tests not works, they depend on resolver rm src/net/cgo_unix_test.go - '' + lib.optionalString stdenv.isLinux '' # 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 diff --git a/pkgs/development/compilers/go/1.17.nix b/pkgs/development/compilers/go/1.17.nix index 2f62c450c2e..279be309427 100644 --- a/pkgs/development/compilers/go/1.17.nix +++ b/pkgs/development/compilers/go/1.17.nix @@ -125,7 +125,6 @@ stdenv.mkDerivation rec { # Disable cgo lookup tests not works, they depend on resolver rm src/net/cgo_unix_test.go - '' + lib.optionalString stdenv.isLinux '' # 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 |