summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeubauer, Sebastian <Sebastian.Neubauer@amd.com>2021-10-06 14:39:58 +0200
committerJohn Ericson <John.Ericson@Obsidian.Systems>2021-10-07 11:50:20 -0400
commitb61229ffe858b04ac02324c78f8a07355d92fb0f (patch)
tree461d28bc067c4acd78c7432bb63b826d0913958a
parentMerge pull request #140859 from NixOS/backport-132077-to-release-21.05 (diff)
downloadnixpkgs-b61229ffe858b04ac02324c78f8a07355d92fb0f.tar.gz
arcanist: Update certs to fix letsencrypt
Due to the old root certificate used by letsencrypt expiring, arcanist could not connect anymore to servers using letsencrypt (like reviews.llvm.org). Fix it by using the default nix certificates. (cherry picked from commit 93eb7786c9365981854a98e508d5b1cae5ee2fcf)
-rw-r--r--pkgs/development/tools/misc/arcanist/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/arcanist/default.nix b/pkgs/development/tools/misc/arcanist/default.nix
index a5a9d724a79e..31cc32de8c83 100644
--- a/pkgs/development/tools/misc/arcanist/default.nix
+++ b/pkgs/development/tools/misc/arcanist/default.nix
@@ -1,4 +1,5 @@
{ bison
+, cacert
, fetchFromGitHub
, flex
, php
@@ -46,6 +47,7 @@ stdenv.mkDerivation {
make install -C support/xhpast
make cleanall -C support/xhpast
cp -R . $out/libexec/arcanist
+ ln -sf ${cacert}/etc/ssl/certs/ca-bundle.crt $out/libexec/arcanist/resources/ssl/default.pem
${makeArcWrapper "arc"}
${makeArcWrapper "phage"}