diff options
author | Robert Hensing <roberth@users.noreply.github.com> | 2022-08-31 14:08:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-31 14:08:02 +0200 |
commit | 62b25a28fe64cfdcd8bfe8c50d9d03257733d172 (patch) | |
tree | 3b8cb16326662e2a15f51a85067a5e1c6a767dfa /pkgs/build-support | |
parent | 4415574d237c6b6b8d239d32d499c897e5e60597 (diff) | |
parent | c9d8e34fc44c103f402275e13d010ed3febd2424 (diff) |
Merge pull request #170906 from Sohalt/dockerTools.ca-certificates.crt
dockerTools ca-certificates.crt helper
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/docker/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/build-support/docker/default.nix b/pkgs/build-support/docker/default.nix index 7468f056005af..6876e9e73588e 100644 --- a/pkgs/build-support/docker/default.nix +++ b/pkgs/build-support/docker/default.nix @@ -792,6 +792,16 @@ rec { ln -s ${bashInteractive}/bin/bash $out/bin/sh ''; + # This provides the ca bundle in common locations + caCertificates = runCommand "ca-certificates" { } '' + # Old NixOS compatibility. + ln -s ${cacert}/etc/ssl/certs/ca-bundle.crt $out/etc/ssl/certs/ca-bundle.crt + # NixOS canonical location + Debian/Ubuntu/Arch/Gentoo compatibility. + ln -s ${cacert}/etc/ssl/certs/ca-bundle.crt $out/etc/ssl/certs/ca-certificates.crt + # CentOS/Fedora compatibility. + ln -s ${cacert}/etc/ssl/certs/ca-bundle.crt $out/etc/pki/tls/certs/ca-bundle.crt + ''; + # Build an image and populate its nix database with the provided # contents. The main purpose is to be able to use nix commands in # the container. |