docs-site: fix devshell and nix build

This commit is contained in:
Johannes Kirschbauer
2025-10-08 14:52:39 +02:00
parent 9b392b66ee
commit 1205f74f87
4 changed files with 7 additions and 6 deletions

View File

@@ -5,4 +5,4 @@ mapfile -d '' -t nix_files < <(find ./nix -name "*.nix" -print0)
watch_file "${nix_files[@]}"
# Because we depend on nixpkgs sources, uploading to builders takes a long time
use flake .#site --builders ''
use flake .#docs-site --builders ''

View File

@@ -27,7 +27,7 @@ buildNpmPackage {
chmod +w -R src/routes/docs/reference
mkdir -p static/icons
cp -af ${../pkgs/clan-app/ui/icons}/* ./static/icons
cp -af ${../clan-app/ui/icons}/* ./static/icons
chmod +w -R static/icons
'';
}

View File

@@ -2,11 +2,11 @@
perSystem =
{ pkgs, self', ... }:
{
packages.site = pkgs.callPackage ./default.nix { inherit (self'.packages) module-docs; };
packages.docs-site = pkgs.callPackage ./default.nix { inherit (self'.packages) module-docs; };
devShells.site = pkgs.mkShell {
shellHook = self'.packages.site.preBuild;
inputsFrom = [ self'.packages.site ];
devShells.docs-site = pkgs.mkShell {
shellHook = self'.packages.docs-site.preBuild;
inputsFrom = [ self'.packages.docs-site ];
};
};
}

View File

@@ -3,6 +3,7 @@
{
imports = [
./clan-cli/flake-module.nix
./docs-site/flake-module.nix
./clan-vm-manager/flake-module.nix
./installer/flake-module.nix
./icon-update/flake-module.nix