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).
This commit is contained in:
parent
245d3bd154
commit
8abe03de3c
1 changed files with 3 additions and 1 deletions
|
@ -23,7 +23,9 @@ with pkgs; buildGoPackage rec {
|
||||||
# Enable checks and configure check-phase to include vet:
|
# Enable checks and configure check-phase to include vet:
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
getGoDirs "" | parallel -j $NIX_BUILD_CORES buildGoDir vet
|
for pkg in $(getGoDirs ""); do
|
||||||
|
buildGoDir vet "$pkg"
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue