docs: no longer depend on self
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
clan-core,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
module-docs,
|
module-docs,
|
||||||
clan-cli-docs,
|
clan-cli-docs,
|
||||||
@@ -19,7 +18,17 @@ pkgs.stdenv.mkDerivation {
|
|||||||
|
|
||||||
# Points to repository root.
|
# Points to repository root.
|
||||||
# so that we can access directories outside of docs to include code snippets
|
# 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 =
|
nativeBuildInputs =
|
||||||
[
|
[
|
||||||
|
|||||||
@@ -82,10 +82,9 @@
|
|||||||
}
|
}
|
||||||
''
|
''
|
||||||
export CLAN_CORE_PATH=${
|
export CLAN_CORE_PATH=${
|
||||||
self.filter {
|
inputs.nixpkgs.lib.fileset.toSource {
|
||||||
include = [
|
root = ../..;
|
||||||
"clanModules"
|
fileset = ../../clanModules;
|
||||||
];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export CLAN_CORE_DOCS=${jsonDocs.clanCore}/share/doc/nixos/options.json
|
export CLAN_CORE_DOCS=${jsonDocs.clanCore}/share/doc/nixos/options.json
|
||||||
@@ -126,7 +125,6 @@
|
|||||||
});
|
});
|
||||||
packages = {
|
packages = {
|
||||||
docs = pkgs.python3.pkgs.callPackage ./default.nix {
|
docs = pkgs.python3.pkgs.callPackage ./default.nix {
|
||||||
clan-core = self;
|
|
||||||
inherit (self'.packages)
|
inherit (self'.packages)
|
||||||
clan-cli-docs
|
clan-cli-docs
|
||||||
docs-options
|
docs-options
|
||||||
|
|||||||
Reference in New Issue
Block a user