From 5e2835bffebf3d82882a564b72c18319e9219f6e Mon Sep 17 00:00:00 2001 From: Marien Zwart Date: Sat, 22 Jun 2024 21:54:11 +1000 Subject: [PATCH] Make extraPins override Doom pins So it can be used to override conflicting pins for packages built from the same repo. --- default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/default.nix b/default.nix index 54fed71..08457ea 100644 --- a/default.nix +++ b/default.nix @@ -104,7 +104,7 @@ let repoToPackages = lib.zipAttrs (lib.mapAttrsToList (name: repo: { ${repo} = name; }) packageToRepo); packageToPin = lib.mapAttrs - (name: p: p.pin or extraPins.${name} or null) doomPackageSet; + (name: p: extraPins.${name} or p.pin or null) doomPackageSet; repoToPins = lib.mapAttrs (name: packages: lib.unique (lib.filter (p: p != null) (map (p: packageToPin.${p}) packages))) repoToPackages; @@ -154,7 +154,7 @@ let # null`, we need to explicitly check for presence. hasOrigEPkg = esuper ? ${name}; origEPkg = esuper.${name}; - pin = p.pin or extraPins.${name} or ( + pin = extraPins.${name} or p.pin or ( # Don't use `url`: this needs to be in sync with repoToPin above. # (If we remap ELPA packages to emacs-straight here but not above, it breaks...) let repo = esuper.${name}.src.gitRepoUrl or null; in