Skip to content

Commit

Permalink
fix: include showRawDecls in modified-lib.nix
Browse files Browse the repository at this point in the history
The function mergeModules' requires this function.
  • Loading branch information
Noah765 committed Jul 20, 2024
1 parent 9b4bf76 commit cb73aee
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/modified-lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,20 @@ lib:
with lib; let
inherit (lib.options) showDefs;

showRawDecls = loc: decls:
concatStringsSep "\n"
(sort (a: b: a < b)
(
concatMap
(
decl:
map
(showDeclPrefix loc decl)
(attrNames decl.options)
)
decls
));

/*
See https://nixos.org/manual/nixpkgs/unstable/#module-system-lib-evalModules
or file://./../doc/module-system/module-system.chapter.md
Expand Down

0 comments on commit cb73aee

Please sign in to comment.