Skip to content

Commit

Permalink
Revert "openssl, curl, git: Respect $NIX_SSL_CERT_FILE"
Browse files Browse the repository at this point in the history
This reverts commit 942dbf8. Sorry,
this was supposed to go to staging instead of master...
  • Loading branch information
edolstra committed Oct 14, 2016
1 parent 24de66c commit 811b876
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 37 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
diff -ru git-2.7.4-orig/http.c git-2.7.4/http.c
--- git-2.7.4-orig/http.c 2016-03-17 21:47:59.000000000 +0100
+++ git-2.7.4/http.c 2016-04-12 11:38:33.187070848 +0200
@@ -544,6 +544,10 @@
@@ -544,6 +544,7 @@
#if LIBCURL_VERSION_NUM >= 0x070908
set_from_env(&ssl_capath, "GIT_SSL_CAPATH");
#endif
+ if (getenv("NIX_SSL_CERT_FILE"))
+ set_from_env(&ssl_cainfo, "NIX_SSL_CERT_FILE");
+ else
+ set_from_env(&ssl_cainfo, "SSL_CERT_FILE");
+ set_from_env(&ssl_cainfo, "SSL_CERT_FILE");
set_from_env(&ssl_cainfo, "GIT_SSL_CAINFO");

set_from_env(&user_agent, "GIT_HTTP_USER_AGENT");
1 change: 0 additions & 1 deletion pkgs/development/libraries/openssl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ let

patches =
(args.patches or [])
++ [ ./nix-ssl-cert-file.patch ]
++ optional (versionOlder version "1.1.0") ./use-etc-ssl-certs.patch
++ optional stdenv.isCygwin ./1.0.1-cygwin64.patch
++ optional
Expand Down
15 changes: 0 additions & 15 deletions pkgs/development/libraries/openssl/nix-ssl-cert-file.patch

This file was deleted.

2 changes: 0 additions & 2 deletions pkgs/tools/networking/curl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ stdenv.mkDerivation rec {
sha256 = "1v6q83qsrf7dgp3y5fa5vkppgqyy82pnsk8z9b4047b6fvclfwvv";
};

patches = [ ./nix-ssl-cert-file.patch ];

outputs = [ "bin" "dev" "out" "man" "devdoc" ];

nativeBuildInputs = [ pkgconfig perl ];
Expand Down
14 changes: 0 additions & 14 deletions pkgs/tools/networking/curl/nix-ssl-cert-file.patch

This file was deleted.

0 comments on commit 811b876

Please sign in to comment.