diff --git a/docs/nix/default.nix b/docs/nix/default.nix index 143b38146..7100f8c29 100644 --- a/docs/nix/default.nix +++ b/docs/nix/default.nix @@ -1,5 +1,4 @@ { - clan-core, pkgs, module-docs, clan-cli-docs, @@ -19,7 +18,17 @@ pkgs.stdenv.mkDerivation { # Points to repository root. # so that we can access directories outside of docs to include code snippets - src = clan-core; + src = pkgs.lib.fileset.toSource { + root = ../..; + fileset = pkgs.lib.fileset.unions [ + # Docs directory + ../../docs + # Icons needed for the build + ../../pkgs/clan-app/ui/icons + # Any other directories that might be referenced for code snippets + # Add them here as needed based on what mkdocs actually uses + ]; + }; nativeBuildInputs = [ diff --git a/docs/nix/flake-module.nix b/docs/nix/flake-module.nix index 87986bb04..642aa7bdc 100644 --- a/docs/nix/flake-module.nix +++ b/docs/nix/flake-module.nix @@ -82,10 +82,9 @@ } '' export CLAN_CORE_PATH=${ - self.filter { - include = [ - "clanModules" - ]; + inputs.nixpkgs.lib.fileset.toSource { + root = ../..; + fileset = ../../clanModules; } } export CLAN_CORE_DOCS=${jsonDocs.clanCore}/share/doc/nixos/options.json @@ -126,7 +125,6 @@ }); packages = { docs = pkgs.python3.pkgs.callPackage ./default.nix { - clan-core = self; inherit (self'.packages) clan-cli-docs docs-options