docs/devshell: unbreak - add options-page

Create the options-page subpage when the docs dev shell is loaded.

Also simplify the dev shell definition by just utilizing what's in configurePhase of the docs derivation
This commit is contained in:
DavHau
2025-06-25 11:32:28 +07:00
parent 12682b608c
commit d9d1ab97a9
4 changed files with 16 additions and 50 deletions

View File

@@ -115,15 +115,16 @@
clanModulesViaService
;
};
devShells.docs = pkgs.callPackage ./shell.nix {
inherit (self'.packages) docs clan-cli-docs inventory-api-docs;
inherit
asciinema-player-js
asciinema-player-css
module-docs
self'
;
};
devShells.docs = self'.packages.docs.overrideAttrs (_old: {
nativeBuildInputs =
self'.devShells.default.nativeBuildInputs ++ self'.packages.docs.nativeBuildInputs;
shellHook = ''
${self'.devShells.default.shellHook}
git_root=$(git rev-parse --show-toplevel)
cd "$git_root"
runPhase configurePhase
'';
});
packages = {
docs = pkgs.python3.pkgs.callPackage ./default.nix {
clan-core = self;