From b19ed8cfbaed100de149a2a4af0c9f99efa27aff Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Tue, 7 Jan 2025 17:43:22 +0800 Subject: [PATCH] emacsPackages.consult-gh: ignore compilation error --- .../editors/emacs/elisp-packages/melpa-packages.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix b/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix index c4e580796d3b..5c8e9aead522 100644 --- a/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix +++ b/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix @@ -956,9 +956,12 @@ let # missing optional dependencies conda = addPackageRequires super.conda [ self.projectile ]; - consult-gh = super.consult-gh.overrideAttrs (old: { - propagatedUserEnvPkgs = old.propagatedUserEnvPkgs or [ ] ++ [ pkgs.gh ]; - }); + # needs network during compilation, also native-ice + consult-gh = ignoreCompilationError ( + super.consult-gh.overrideAttrs (old: { + propagatedUserEnvPkgs = old.propagatedUserEnvPkgs or [ ] ++ [ pkgs.gh ]; + }) + ); consult-gh-forge = buildWithGit super.consult-gh-forge;