···2, stdenv
3, fetchurl
4, tzdata
05, iana-etc
6, which
7, pkg-config
···68 hardeningDisable = [ "all" ];
6970 postPatch = ''
71- patchShebangs ./ # replace /bin/bash
0720000073 # Patch the mimetype database location which is missing on NixOS.
74 # but also allow static binaries built with NixOS to run outside nix
75- sed -i 's,\"/etc/mime.types,"${mailcap}/etc/mime.types\"\,\n\t&,' src/mime/type_unix.go
76-77- sed -i 's,/etc/protocols,${iana-etc}/etc/protocols,' src/net/lookup_unix.go
78- sed -i 's,/etc/services,${iana-etc}/etc/services,' src/net/port_unix.go
79-80 # prepend the nix path to the zoneinfo files but also leave the original value for static binaries
81 # that run outside a nix server
82- sed -i 's,\"/usr/share/zoneinfo/,"${tzdata}/share/zoneinfo/\"\,\n\t&,' src/time/zoneinfo_unix.go
83- '';
84-85- patches = [
86 ./remove-tools-1.11.patch
87 ./ssl-cert-file-1.16.patch
88 ./go_no_vendor_checks-1.16.patch
···2, stdenv
3, fetchurl
4, tzdata
5+, substituteAll
6, iana-etc
7, which
8, pkg-config
···69 hardeningDisable = [ "all" ];
7071 postPatch = ''
72+ patchShebangs .
73+ '';
7475+ patches = [
76+ (substituteAll {
77+ src = ./iana-etc-1.17.patch;
78+ iana = iana-etc;
79+ })
80 # Patch the mimetype database location which is missing on NixOS.
81 # but also allow static binaries built with NixOS to run outside nix
82+ (substituteAll {
83+ src = ./mailcap-1.17.patch;
84+ inherit mailcap;
85+ })
086 # prepend the nix path to the zoneinfo files but also leave the original value for static binaries
87 # that run outside a nix server
88+ (substituteAll {
89+ src = ./tzdata-1.17.patch;
90+ inherit tzdata;
91+ })
92 ./remove-tools-1.11.patch
93 ./ssl-cert-file-1.16.patch
94 ./go_no_vendor_checks-1.16.patch
+16-10
pkgs/development/compilers/go/1.19.nix
···2, stdenv
3, fetchurl
4, tzdata
05, iana-etc
6, which
7, pkg-config
···68 hardeningDisable = [ "all" ];
6970 postPatch = ''
71- patchShebangs ./ # replace /bin/bash
0720000073 # Patch the mimetype database location which is missing on NixOS.
74 # but also allow static binaries built with NixOS to run outside nix
75- sed -i 's,\"/etc/mime.types,"${mailcap}/etc/mime.types\"\,\n\t&,' src/mime/type_unix.go
76-77- sed -i 's,/etc/protocols,${iana-etc}/etc/protocols,' src/net/lookup_unix.go
78- sed -i 's,/etc/services,${iana-etc}/etc/services,' src/net/port_unix.go
79-80 # prepend the nix path to the zoneinfo files but also leave the original value for static binaries
81 # that run outside a nix server
82- sed -i 's,\"/usr/share/zoneinfo/,"${tzdata}/share/zoneinfo/\"\,\n\t&,' src/time/zoneinfo_unix.go
83- '';
84-85- patches = [
86 ./remove-tools-1.11.patch
87 ./ssl-cert-file-1.16.patch
88 ./go_no_vendor_checks-1.16.patch
···2, stdenv
3, fetchurl
4, tzdata
5+, substituteAll
6, iana-etc
7, which
8, pkg-config
···69 hardeningDisable = [ "all" ];
7071 postPatch = ''
72+ patchShebangs .
73+ '';
7475+ patches = [
76+ (substituteAll {
77+ src = ./iana-etc-1.17.patch;
78+ iana = iana-etc;
79+ })
80 # Patch the mimetype database location which is missing on NixOS.
81 # but also allow static binaries built with NixOS to run outside nix
82+ (substituteAll {
83+ src = ./mailcap-1.17.patch;
84+ inherit mailcap;
85+ })
086 # prepend the nix path to the zoneinfo files but also leave the original value for static binaries
87 # that run outside a nix server
88+ (substituteAll {
89+ src = ./tzdata-1.19.patch;
90+ inherit tzdata;
91+ })
92 ./remove-tools-1.11.patch
93 ./ssl-cert-file-1.16.patch
94 ./go_no_vendor_checks-1.16.patch