nuget-to-nix: set SSL_CERT_FILE

This is required for curl.
This commit is contained in:
David McFarland 2024-09-08 00:04:27 -03:00
parent 1d4d0d3db7
commit 60d3a7d230
2 changed files with 3 additions and 1 deletions

View File

@ -9,12 +9,13 @@
, curl , curl
, gnugrep , gnugrep
, gawk , gawk
, cacert
}: }:
runCommandLocal "nuget-to-nix" { runCommandLocal "nuget-to-nix" {
script = substituteAll { script = substituteAll {
src = ./nuget-to-nix.sh; src = ./nuget-to-nix.sh;
inherit runtimeShell; inherit runtimeShell cacert;
binPath = lib.makeBinPath [ binPath = lib.makeBinPath [
nix nix

View File

@ -3,6 +3,7 @@
set -euo pipefail set -euo pipefail
shopt -s nullglob shopt -s nullglob
export SSL_CERT_FILE=@cacert@/etc/ssl/certs/ca-bundle.crt
export PATH="@binPath@:$PATH" export PATH="@binPath@:$PATH"
# used for glob ordering of package names # used for glob ordering of package names
export LC_ALL=C export LC_ALL=C