GeezerVison is showing github.com — tools: use vendored trust store in `shell.nix` · nodejs/node@8232390
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/nix-changes.yml +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
11 | 11 | - v[0-9]+.x |
12 | 12 | paths: |
13 | 13 | - '**.nix' |
| 14 | + - tools/certdata.txt |
14 | 15 | - tools/nix/** |
15 | 16 | - .github/workflows/nix-changes.yml |
16 | 17 | pull_request: |
17 | 18 | paths: |
18 | 19 | - '**.nix' |
| 20 | + - tools/certdata.txt |
19 | 21 | - tools/nix/** |
20 | 22 | - .github/workflows/nix-changes.yml |
21 | 23 | types: [opened, synchronize, reopened, ready_for_review] |
|
52 | 54 | sparse-checkout: | |
53 | 55 | shell.nix |
54 | 56 | tools/nix/ |
| 57 | + tools/certdata.txt |
55 | 58 | sparse-checkout-cone-mode: false |
56 | 59 |
|
57 | 60 | - uses: cachix/install-nix-action@13d8dd58da0234aa297dedd986986ccb8e7f3e24 # v31.11.1 |
|
Collapse file
Copy file name to clipboardExpand all lines: shell.nix +8Lines changed: 8 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -144,6 +144,14 @@ pkgs.mkShell { |
144 | 144 | ) |
145 | 145 | ) |
146 | 146 | ); |
| 147 | + |
| 148 | + # CA bundle built from the vendored Mozilla trust store, so Nix-built tools |
| 149 | + # (curl, git, shared OpenSSL) don't fall back to the user's possibly stale one. |
| 150 | + NIX_SSL_CERT_FILE = "${ |
| 151 | + pkgs.cacert.overrideAttrs { |
| 152 | + src = ./tools/certdata.txt; |
| 153 | + } |
| 154 | + }/etc/ssl/certs/ca-bundle.crt"; |
147 | 155 | } |
148 | 156 | // ( |
149 | 157 | let |
|
Collapse file
Copy file name to clipboardExpand all lines: tools/nix/sharedLibDeps.nix +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
22 | 22 | ; |
23 | 23 | abseil = pkgs.abseil-cpp; |
24 | 24 | brotli = pkgs.brotli.overrideAttrs (old: { |
25 | | - patches = (old.patches or []) ++ [ |
| 25 | + patches = (old.patches or [ ]) ++ [ |
26 | 26 | (pkgs.fetchpatch2 { |
27 | 27 | url = "https://github.com/google/brotli/commit/0ed4268a4401abcb4472096340477cf4af7d1a2b.patch?full_index=1"; |
28 | 28 | hash = "sha256-dVpnYI2JLDEt2VQkbI6RnbpdcQSMB5bTQ6TJp5CLnyw="; |
|