docs/mdbook: install directly to $out

This fixes a regression introduced by https://github.com/nix-community/nixvim/pull/3349
This commit is contained in:
Matt Sturgeon 2025-05-23 21:13:06 +01:00
parent 4dc8d1e918
commit e3f4a57fb8
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
2 changed files with 5 additions and 6 deletions

View file

@ -110,7 +110,7 @@ jobs:
# Copy the result to the install dir # Copy the result to the install dir
mkdir -p "$installDir" mkdir -p "$installDir"
cp -r result/share/doc/* "$installDir" cp -r result/* "$installDir"
} }
# For each version of the docs... # For each version of the docs...

View file

@ -349,8 +349,7 @@ pkgs.stdenv.mkDerivation (finalAttrs: {
contributing = finalAttrs.passthru.fix-links ../../CONTRIBUTING.md; contributing = finalAttrs.passthru.fix-links ../../CONTRIBUTING.md;
buildPhase = '' buildPhase = ''
dest=$out/share/doc mkdir -p $out
mkdir -p $dest
# Copy (and flatten) src into the build directory # Copy (and flatten) src into the build directory
cp -r --no-preserve=all $src/* ./ cp -r --no-preserve=all $src/* ./
@ -397,9 +396,9 @@ pkgs.stdenv.mkDerivation (finalAttrs: {
--replace-fail "@USER_CONFIGS@" "$(cat ${finalAttrs.passthru.user-configs})" --replace-fail "@USER_CONFIGS@" "$(cat ${finalAttrs.passthru.user-configs})"
mdbook build mdbook build
cp -r ./book/* $dest cp -r ./book/* $out
mkdir -p $dest/search mkdir -p $out/search
cp -r ${finalAttrs.passthru.search}/* $dest/search cp -r ${finalAttrs.passthru.search}/* $out/search
''; '';
inherit baseHref; inherit baseHref;