mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-24 20:54:56 +02:00
docs/mdbook: install directly to $out
(cherry picked from commit e3f4a57fb8
)
This commit is contained in:
parent
240a7c2fdf
commit
3117e87095
3 changed files with 6 additions and 7 deletions
|
@ -348,8 +348,7 @@ pkgs.stdenv.mkDerivation (finalAttrs: {
|
|||
contributing = finalAttrs.passthru.fix-links ../../CONTRIBUTING.md;
|
||||
|
||||
buildPhase = ''
|
||||
dest=$out/share/doc
|
||||
mkdir -p $dest
|
||||
mkdir -p $out
|
||||
|
||||
# Copy (and flatten) src into the build directory
|
||||
cp -r --no-preserve=all $src/* ./
|
||||
|
@ -388,9 +387,9 @@ pkgs.stdenv.mkDerivation (finalAttrs: {
|
|||
--replace-fail "@USER_CONFIGS@" "$(cat ${finalAttrs.passthru.user-configs})"
|
||||
|
||||
mdbook build
|
||||
cp -r ./book/* $dest
|
||||
mkdir -p $dest/search
|
||||
cp -r ${finalAttrs.passthru.search}/* $dest/search
|
||||
cp -r ./book/* $out
|
||||
mkdir -p $out/search
|
||||
cp -r ${finalAttrs.passthru.search}/* $out/search
|
||||
'';
|
||||
|
||||
inherit baseHref;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue