···117# https://web.archive.org/web/20170222224855/http://frank.harvard.edu/~coldwell/toolchain/
118# https://web.archive.org/web/20170224235700/http://frank.harvard.edu/~coldwell/toolchain/t-linux.diff
119+ lib.optionalString (targetPlatform != hostPlatform && withoutTargetLibc && enableShared)
120+ (let
121+122+ # crt{i,n}.o are the first and last (respectively) object file
123+ # linked when producing an executable. Traditionally these
124+ # files are delivered as part of the C library, but on GNU
125+ # systems they are in fact built by GCC. Since libgcc needs to
126+ # build before glibc, we can't wait for them to be copied by
127+ # glibc. At this early pre-glibc stage these files sometimes
128+ # have different names.
129+ crtstuff-ofiles =
130+ if targetPlatform.isPower
131+ then "ecrti.o ecrtn.o ncrti.o ncrtn.o"
132+ else "crti.o crtn.o";
133+134+ # Normally, `SHLIB_LC` is set to `-lc`, which means that
135+ # `libgcc_s.so` cannot be built until `libc.so` is available.
136+ # The assignment below clobbers this variable, removing the
137+ # `-lc`.
138+ #
139+ # On PowerPC we add `-mnewlib`, which means "libc has not been
140+ # built yet". This causes libgcc's Makefile to use the
141+ # gcc-built `{e,n}crt{n,i}.o` instead of failing to find the
142+ # versions which have been repackaged in libc as `crt{n,i}.o`
143+ #
144+ SHLIB_LC = lib.optionalString targetPlatform.isPower "-mnewlib";
145+146+ in ''
147+ echo 'libgcc.a: ${crtstuff-ofiles}' >> libgcc/Makefile.in
148+ echo 'SHLIB_LC=${SHLIB_LC}' >> libgcc/Makefile.in
149 '')
150151+ lib.optionalString (!enableMultilib && hostPlatform.is64bit && !hostPlatform.isMips64n32) ''
···1{ lib, fetchFromGitHub }:
23let
4- version = "3.11.19";
5in
6fetchFromGitHub {
7 name = "stevenblack-blocklist-${version}";
···9 owner = "StevenBlack";
10 repo = "hosts";
11 rev = version;
12- sha256 = "sha256-YGD3I64g/zD5iX2oIU6Qy/WqzcWcaNs1HjMUBeKcDZ4=";
1314 meta = with lib; {
15 description = "Unified hosts file with base extensions";
···1{ lib, fetchFromGitHub }:
23let
4+ version = "3.13.10";
5in
6fetchFromGitHub {
7 name = "stevenblack-blocklist-${version}";
···9 owner = "StevenBlack";
10 repo = "hosts";
11 rev = version;
12+ sha256 = "sha256-LTo0NV1DpHI05AvfmTKNz+/NdXaNoLxgpMhV/HqeT6g=";
1314 meta = with lib; {
15 description = "Unified hosts file with base extensions";
+2-2
pkgs/tools/security/fulcio/default.nix
···23buildGoModule rec {
4 pname = "fulcio";
5- version = "1.3.3";
67 src = fetchFromGitHub {
8 owner = "sigstore";
9 repo = pname;
10 rev = "v${version}";
11- sha256 = "sha256-sDOsnpxvPTlexZFDEbF7kOl/1h/Xl3/ziBII95Oxqsw=";
12 # populate values that require us to use git. By doing this in postFetch we
13 # can delete .git afterwards and maintain better reproducibility of the src.
14 leaveDotGit = true;
···23buildGoModule rec {
4 pname = "fulcio";
5+ version = "1.3.4";
67 src = fetchFromGitHub {
8 owner = "sigstore";
9 repo = pname;
10 rev = "v${version}";
11+ sha256 = "sha256-HJ1hTq6Mwt4f8r92ZNpL/Aco9dzIpxBH9ZSA3h1P4/A=";
12 # populate values that require us to use git. By doing this in postFetch we
13 # can delete .git afterwards and maintain better reproducibility of the src.
14 leaveDotGit = true;