From 8abe03de3c75dd1dc1f2f65ff71b1ec3888208c2 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 1 May 2019 16:18:10 +0000 Subject: fix(build): Make Nix build work with recent nixpkgs Changes in the Go build environment for Nix have caused the parallel vetting to run in a subshell which does not have the required function definitions. This commit fixes the error by not running vet in parallel (there's no point to that anyways as the project is tiny). --- default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index e2c1a5650fcf..b2f1c284fb20 100644 --- a/default.nix +++ b/default.nix @@ -23,7 +23,9 @@ with pkgs; buildGoPackage rec { # Enable checks and configure check-phase to include vet: doCheck = true; preCheck = '' - getGoDirs "" | parallel -j $NIX_BUILD_CORES buildGoDir vet + for pkg in $(getGoDirs ""); do + buildGoDir vet "$pkg" + done ''; meta = with lib; { -- cgit 1.4.1