docs-site: fix devshell and nix build
This commit is contained in:
@@ -5,4 +5,4 @@ mapfile -d '' -t nix_files < <(find ./nix -name "*.nix" -print0)
|
|||||||
watch_file "${nix_files[@]}"
|
watch_file "${nix_files[@]}"
|
||||||
|
|
||||||
# Because we depend on nixpkgs sources, uploading to builders takes a long time
|
# Because we depend on nixpkgs sources, uploading to builders takes a long time
|
||||||
use flake .#site --builders ''
|
use flake .#docs-site --builders ''
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ buildNpmPackage {
|
|||||||
chmod +w -R src/routes/docs/reference
|
chmod +w -R src/routes/docs/reference
|
||||||
|
|
||||||
mkdir -p static/icons
|
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
|
chmod +w -R static/icons
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
perSystem =
|
perSystem =
|
||||||
{ pkgs, self', ... }:
|
{ 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 {
|
devShells.docs-site = pkgs.mkShell {
|
||||||
shellHook = self'.packages.site.preBuild;
|
shellHook = self'.packages.docs-site.preBuild;
|
||||||
inputsFrom = [ self'.packages.site ];
|
inputsFrom = [ self'.packages.docs-site ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./clan-cli/flake-module.nix
|
./clan-cli/flake-module.nix
|
||||||
|
./docs-site/flake-module.nix
|
||||||
./clan-vm-manager/flake-module.nix
|
./clan-vm-manager/flake-module.nix
|
||||||
./installer/flake-module.nix
|
./installer/flake-module.nix
|
||||||
./icon-update/flake-module.nix
|
./icon-update/flake-module.nix
|
||||||
|
|||||||
Reference in New Issue
Block a user