mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
security/pki: handle certificate paths with spaces
This commit is contained in:
parent
91010a5613
commit
44863a0667
1 changed files with 5 additions and 6 deletions
|
@ -9,13 +9,12 @@ let
|
|||
blacklist = cfg.caCertificateBlacklist;
|
||||
};
|
||||
|
||||
caCertificates = pkgs.runCommand "ca-certificates.crt"
|
||||
{ files =
|
||||
cfg.certificateFiles ++
|
||||
[ (builtins.toFile "extra.crt" (concatStringsSep "\n" cfg.certificates)) ];
|
||||
}
|
||||
caCertificates = pkgs.runCommand "ca-certificates.crt" {}
|
||||
''
|
||||
cat $files > $out
|
||||
cat ${escapeShellArgs (
|
||||
cfg.certificateFiles ++
|
||||
[ (builtins.toFile "extra.crt" (concatStringsSep "\n" cfg.certificates)) ]
|
||||
)} > $out
|
||||
'';
|
||||
in
|
||||
|
||||
|
|
Loading…
Reference in a new issue