depot/third_party/nixpkgs/patches/pr153718.patch

37 lines
1.2 KiB
Diff

From a8ef60565ac9dc3fe2c68dc6a7fb29765e8bc2cf Mon Sep 17 00:00:00 2001
From: pacien <pacien.trangirard@pacien.net>
Date: Thu, 6 Jan 2022 22:16:22 +0100
Subject: [PATCH] mercurial: add CA cert to test env for libgit
This seems to be required for the tests to pass on Hydra.
Otherwise, the test suit fails with errors like:
```
feature pygit2 failed: OpenSSL error: failed to load certificates:
error:00000000:lib(0):func(0):reason(0)
```
---
pkgs/applications/version-management/mercurial/default.nix | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pkgs/applications/version-management/mercurial/default.nix b/pkgs/applications/version-management/mercurial/default.nix
index a85844fff2163..c3c04da3a69a6 100644
--- a/pkgs/applications/version-management/mercurial/default.nix
+++ b/pkgs/applications/version-management/mercurial/default.nix
@@ -11,6 +11,7 @@
, which
, sqlite
, git
+, cacert
, gnupg
}:
@@ -70,6 +71,7 @@ let
git
gnupg
];
+ SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt"; # needed for git
checkPhase = ''
cat << EOF > tests/blacklists/nix
# tests enforcing "/usr/bin/env" shebangs, which are patched for nix