Skip to content

Commit

Permalink
Fix where settings are found in nixpkgsOverlay
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Oct 18, 2024
1 parent dd12c74 commit 1f47a07
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions nix/nixpkgs-overlay.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ symlinkJoin
{ lib
, symlinkJoin

, chooseMeta

Expand All @@ -12,7 +13,7 @@ self: super: {
paths = let
getOutputs = pkg:
let
outputs = (fakeModule.${pkg}.settings.outputs or null);
outputs = (fakeModule.${pkg}.outputs or null);
in
if outputs != null
then (map (x: self.${pkg}.${x}) outputs)
Expand All @@ -26,7 +27,11 @@ self: super: {
name = n;
meta = chooseMeta (self.${n} or {});
packages = [];
settings = v.settings or {};
settings =
{}
// lib.optionalAttrs (lib.hasAttr "outputs" v) {
inherit (v) outputs;
};
}) fakeModule;
};
};
Expand Down

0 comments on commit 1f47a07

Please sign in to comment.