1
0
Fork 0
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:
Jonathan Morley 2024-01-22 12:17:36 -05:00 committed by Jonathan Morley
parent 91010a5613
commit 44863a0667
No known key found for this signature in database

View file

@ -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