From a1f2e2bed7277c3b43fcd8c5bae1cd34dd7901f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Wed, 2 Oct 2019 15:41:12 +0200 Subject: [PATCH] fixes #1 --- src/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.ts b/src/main.ts index fa3a24a..f6941e8 100644 --- a/src/main.ts +++ b/src/main.ts @@ -11,6 +11,10 @@ async function run() { const PATH = process.env.PATH; const CERTS_PATH = home + '/.nix-profile/etc/ssl/certs/ca-bundle.crt'; + // Workaround a segfault: https://github.com/NixOS/nix/issues/2733 + await exec.exec("sudo", ["mkdir", "-p", "/etc/nix"]); + await exec.exec("sudo", ["echo", "http2 = false", ">>", "/etc/nix/nix.conf"]); + // TODO: retry due to all the things that go wrong const nixInstall = await tc.downloadTool('https://nixos.org/nix/install'); await exec.exec("sh", [nixInstall]);