Skip to content

Commit

Permalink
Make extraPins override Doom pins
Browse files Browse the repository at this point in the history
So it can be used to override conflicting pins for packages built from
the same repo.
  • Loading branch information
marienz committed Jun 22, 2024
1 parent 5d98aba commit 5e2835b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5e2835b

Please sign in to comment.