3
0
Fork 0
forked from mirrors/nixpkgs

Add /etc/ssl/certs/ca-certificates.crt symlink for Ubuntu compatibility

NixOS and Fedora uses .../ca-bundle.crt. Ubuntu uses
.../ca-certificates.crt. Add .../ca-certificates.crt symlink to be
compatible with Ubuntu.

Example use case: Bob has a ~/.msmtprc file that he brings over from
Ubuntu. It also works on NixOS.
This commit is contained in:
Bjørn Forsman 2013-08-17 10:35:56 +02:00
parent 7e7a153cd6
commit 10133f0b5b

View file

@ -7,8 +7,15 @@ with pkgs.lib;
config = {
environment.etc =
[ { source = "${pkgs.cacert}/etc/ca-bundle.crt";
target = "ssl/certs/ca-bundle.crt";
[
# Provide both Fedora and Ubuntu certificate locations for
# compatibility.
{ source = "${pkgs.cacert}/etc/ca-bundle.crt";
target = "ssl/certs/ca-bundle.crt"; # Same location as in Fedora
}
{ source = "${pkgs.cacert}/etc/ca-bundle.crt";
target = "ssl/certs/ca-certificates.crt"; # Same location as in Ubuntu
}
# Backward compatibility; may remove at some point.