diff options
author | Vincent Ambo <tazjin@google.com> | 2019-05-01T16·18+0000 |
---|---|---|
committer | Vincent Ambo <github@tazj.in> | 2019-05-01T16·24+0100 |
commit | 8abe03de3c75dd1dc1f2f65ff71b1ec3888208c2 (patch) | |
tree | 70cb9d2bd8514e1aa7d8e7f3afafa60066d13dc8 | |
parent | 245d3bd1548b9cd11e3d2bf9bd93550477da1541 (diff) |
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).
-rw-r--r-- | default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
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; { |