From 514cff68bdddeb6de6549b4186df0f002371c88d Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Mon, 7 Mar 2022 22:02:04 -0800 Subject: [PATCH] package.nix: Unset NIX_EVAL_JOBS if nix-eval-jobs not pinned --- package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package.nix b/package.nix index 4254edc..1acfbc6 100644 --- a/package.nix +++ b/package.nix @@ -17,6 +17,12 @@ rustPlatform.buildRustPackage rec { NIX_EVAL_JOBS = lib.optionalString (nix-eval-jobs != null) "${nix-eval-jobs}/bin/nix-eval-jobs"; + preBuild = '' + if [[ -z "$NIX_EVAL_JOBS" ]]; then + unset NIX_EVAL_JOBS + fi + ''; + postInstall = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) '' installShellCompletion --cmd colmena \ --bash <($out/bin/colmena gen-completions bash) \