mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-09-11 08:35:24 +03:00
deploy: 716988d42e
This commit is contained in:
parent
3fe6a3970a
commit
fbfd9265c8
@ -1,2 +1,2 @@
|
||||
cp -r /nix/store/r4zlswrwh1ha69gjdv4ygpjsm7ciqa4v-source/* .
|
||||
cp -r /nix/store/i51k10c8nvd0a4gmd38z0awh9gwjf7sx-source/* .
|
||||
/nix/store/z0lpf7ll7kdsa522796612sabvh00q9r-mdbook-0.4.25/bin/mdbook build --dest-dir "$out"
|
||||
|
6
env-vars
6
env-vars
@ -3,11 +3,11 @@ declare -x HOME="/homeless-shelter"
|
||||
declare -x HOST_PATH="/nix/store/r1lybmy0jzjsfcmbg24h26aknbgpfvad-coreutils-9.1/bin:/nix/store/mlvjrnjdjj7p2dnsayy848yk7djgd5xk-findutils-4.9.0/bin:/nix/store/b73ppzd6pcq3a8znjqjs5ivfdcxgz0rb-diffutils-3.8/bin:/nix/store/4cjf65g6bacv9f279j5mv04iapzjx6m6-gnused-4.9/bin:/nix/store/qrqwd1ji31vmas9gax819j11w5ickgz1-gnugrep-3.7/bin:/nix/store/ycw1sij5z1kjcxdclz7gqlnf9hdxchlb-gawk-5.2.1/bin:/nix/store/g4qrlj5kr7iwcr81jsm1p55vk0z9rh0z-gnutar-1.34/bin:/nix/store/hcy4vanjxs86cynwn98hcagqyj3ihns4-gzip-1.12/bin:/nix/store/phwcwazlcabg1v6wwrdv6gr5mh2r3ld8-bzip2-1.0.8-bin/bin:/nix/store/2dpp3axxcm5w276xb4hmqgxf5whw8nrm-gnumake-4.4/bin:/nix/store/pj1hnyxhcsw1krmhnbb9rjvqssbzliw8-bash-5.2-p15/bin:/nix/store/7nplxyjihfwhaw0cmrxwlfrq4xkbbz83-patch-2.7.6/bin:/nix/store/p3zp8ymx8rzc3q25jskg4hzz0kr5lyi1-xz-5.4.0-bin/bin:/nix/store/qn0xz86az3rcqfpfrcxhjiyp8s169792-file-5.43/bin"
|
||||
declare -x NIX_BUILD_CORES="2"
|
||||
declare -x NIX_BUILD_TOP="/build"
|
||||
declare -x NIX_CFLAGS_COMPILE=" -frandom-seed=0fmlr31ng2"
|
||||
declare -x NIX_CFLAGS_COMPILE=" -frandom-seed=04667dkd4f"
|
||||
declare -x NIX_ENFORCE_NO_NATIVE="1"
|
||||
declare -x NIX_ENFORCE_PURITY="1"
|
||||
declare -x NIX_INDENT_MAKE="1"
|
||||
declare -x NIX_LDFLAGS="-rpath /nix/store/0fmlr31ng2bdx4y8jp9bki4azhwg1hya-nixos-anywhere-docs/lib64 -rpath /nix/store/0fmlr31ng2bdx4y8jp9bki4azhwg1hya-nixos-anywhere-docs/lib "
|
||||
declare -x NIX_LDFLAGS="-rpath /nix/store/04667dkd4f150gvviz2896f5hrm66xxh-nixos-anywhere-docs/lib64 -rpath /nix/store/04667dkd4f150gvviz2896f5hrm66xxh-nixos-anywhere-docs/lib "
|
||||
declare -x NIX_LOG_FD="2"
|
||||
declare -x NIX_SSL_CERT_FILE="/no-cert-file.crt"
|
||||
declare -x NIX_STORE="/nix/store"
|
||||
@ -46,7 +46,7 @@ declare -x enableParallelChecking="1"
|
||||
declare -x mesonFlags=""
|
||||
declare -x name="nixos-anywhere-docs"
|
||||
declare -x nativeBuildInputs=""
|
||||
declare -x out="/nix/store/0fmlr31ng2bdx4y8jp9bki4azhwg1hya-nixos-anywhere-docs"
|
||||
declare -x out="/nix/store/04667dkd4f150gvviz2896f5hrm66xxh-nixos-anywhere-docs"
|
||||
declare -x outputs="out"
|
||||
declare -x passAsFile="buildCommand"
|
||||
declare -x patches=""
|
||||
|
@ -3,8 +3,11 @@
|
||||
packages.docs = pkgs.runCommand "nixos-anywhere-docs"
|
||||
{
|
||||
passthru.serve = pkgs.writeShellScriptBin "serve" ''
|
||||
set -euo pipefail
|
||||
cd docs
|
||||
${lib.getExe pkgs.mdbook} serve --dest-dir $(${pkgs.coreutils}/bin/mktemp -d)
|
||||
workdir=$(${pkgs.coreutils}/bin/mktemp -d)
|
||||
trap 'rm -rf "$workdir"' EXIT
|
||||
${lib.getExe pkgs.mdbook} serve --dest-dir "$workdir"
|
||||
'';
|
||||
}
|
||||
''
|
||||
|
Loading…
Reference in New Issue
Block a user