nix/nix-disable-mdbook.patch

46 lines
1.7 KiB
Diff

--- nix-2.31.2/doc/manual/meson.build~ 2025-09-18 04:25:38.000000000 +0800
+++ nix-2.31.2/doc/manual/meson.build 2025-11-13 00:26:04.673032194 +0800
@@ -7,7 +7,7 @@
nix = find_program('nix', native : true)
-mdbook = find_program('mdbook', native : true)
+# mdbook = find_program('mdbook', native : true)
bash = find_program('bash', native : true)
rsync = find_program('rsync', required : true, native : true)
@@ -89,13 +89,12 @@
- @0@ @INPUT1@ summary @2@ < @CURRENT_SOURCE_DIR@/source/SUMMARY.md.in > @2@/source/SUMMARY.md
- sed -e 's|@version@|@3@|g' < @INPUT2@ > @2@/book.toml
@4@ -r --include='*.md' @CURRENT_SOURCE_DIR@/ @2@/
- (cd @2@; RUST_LOG=warn @1@ build -d @2@ 3>&2 2>&1 1>&3) | { grep -Fv "because fragment resolution isn't implemented" || :; } 3>&2 2>&1 1>&3
- rm -rf @2@/manual
- mv @2@/html @2@/manual
- find @2@/manual -iname meson.build -delete
+ # (cd @2@; RUST_LOG=warn @1@ build -d @2@ 3>&2 2>&1 1>&3) | { grep -Fv "because fragment resolution isn't implemented" || :; } 3>&2 2>&1 1>&3
+ #rm -rf @2@/manual
+ #mv @2@/html @2@/manual
+ #find @2@/manual -iname meson.build -delete
+ ln -s source @2@/markdown
'''.format(
python.full_path(),
- mdbook.full_path(),
+ 'no-mdbk',
meson.current_build_dir(),
meson.project_version(),
rsync.full_path(),
@@ -130,10 +130,10 @@
manual_html = manual[0]
manual_md = manual[1]
-install_subdir(
- manual_html.full_path(),
- install_dir : get_option('datadir') / 'doc/nix',
-)
+# install_subdir(
+# manual_html.full_path(),
+# install_dir : get_option('datadir') / 'doc/nix',
+# )
nix_nested_manpages = [
[