catvayor
7ac02ac5af
All checks were successful
Check meta / check_meta (pull_request) Successful in 19s
Check meta / check_dns (pull_request) Successful in 19s
Check workflows / check_workflows (pull_request) Successful in 25s
Check workflows / check_workflows (push) Successful in 28s
Run pre-commit on all files / pre-commit (push) Successful in 55s
Build all the nodes / ap01 (pull_request) Successful in 1m5s
Build all the nodes / geo02 (pull_request) Successful in 1m59s
Build all the nodes / geo01 (pull_request) Successful in 2m10s
Build all the nodes / bridge01 (pull_request) Successful in 2m17s
Build all the nodes / hypervisor01 (pull_request) Successful in 1m52s
Build all the nodes / hypervisor02 (pull_request) Successful in 1m41s
Build all the nodes / netcore02 (pull_request) Successful in 37s
Build all the nodes / compute01 (pull_request) Successful in 3m6s
Build all the nodes / hypervisor03 (pull_request) Successful in 1m48s
Build all the nodes / rescue01 (pull_request) Successful in 2m14s
Build all the nodes / vault01 (pull_request) Successful in 2m4s
Build all the nodes / storage01 (pull_request) Successful in 2m7s
Build all the nodes / web02 (pull_request) Successful in 1m41s
Build the shell / build-shell (pull_request) Successful in 30s
Build all the nodes / web01 (pull_request) Successful in 2m17s
Run pre-commit on all files / pre-commit (pull_request) Successful in 39s
Build all the nodes / web03 (pull_request) Successful in 1m44s
25 lines
639 B
Nix
25 lines
639 B
Nix
# SPDX-FileCopyrightText: 2024 Lubin Bailly <lubin.bailly@dgnum.eu>
|
|
#
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
|
|
{
|
|
hugo,
|
|
hugo-theme-extranix-options-search,
|
|
options-files,
|
|
settings,
|
|
static-data,
|
|
lib,
|
|
runCommand,
|
|
}:
|
|
runCommand "nix-doc-webroot" { } ''
|
|
mkdir themes
|
|
ln -s ${hugo-theme-extranix-options-search} themes/extranix-options-search
|
|
cp -rs ${static-data} static
|
|
chmod -R u+w static
|
|
mkdir static/data
|
|
${lib.concatStringsSep "\n" (
|
|
lib.mapAttrsToList (name: file: "ln -s ${file} static/data/options-${name}.json") options-files
|
|
)}
|
|
ln -s ${settings} config.yaml
|
|
${lib.getExe hugo} --noBuildLock -d $out
|
|
''
|