doc: replace inputs input with self

The docs no longer needs access to arbitrary flake inputs. We should
enforce this strictly by taking `self` instead.
This commit is contained in:
Matt Sturgeon 2025-06-19 23:50:54 +01:00 committed by awwpotato
parent bdf092d169
commit 07af242a44
2 changed files with 5 additions and 5 deletions

View file

@ -1,7 +1,7 @@
{
lib,
pkgs,
inputs,
self,
callPackage,
writeText,
stdenvNoCC,
@ -27,13 +27,13 @@ let
home_manager = {
name = "Home Manager";
configuration = evalDocs [
inputs.self.homeModules.stylix
self.homeModules.stylix
./hm_compat.nix
];
};
nixos = {
name = "NixOS";
configuration = evalDocs inputs.self.nixosModules.stylix;
configuration = evalDocs self.nixosModules.stylix;
};
};
@ -324,7 +324,7 @@ let
# Permalink to view a source file on GitHub. If the commit isn't known,
# then fall back to the latest commit.
declarationCommit = inputs.self.rev or "master";
declarationCommit = self.rev or "master";
declarationPermalink = "https://github.com/nix-community/stylix/blob/${declarationCommit}";
# Renders a single option declaration. Example output:

View file

@ -21,7 +21,7 @@
))
{
doc = pkgs.callPackage ../doc {
inherit inputs;
inherit (inputs) self;
};
serve-docs = pkgs.callPackage ../doc/server.nix {
inherit (config.packages) doc;