gnu: nix: Update to 2.4.
* gnu/packages/package-management.scm (nix): Update to 2.4.
[source]: Switch to Github repository since upstream no longer provides
tarball.
[native-inputs]: Add autoconf, autoconf-archive, automake, bison, flex, gcc,
googletest, jq, libtool.
[inputs]: Add libarchive, libcpuid, lowdown, zlib.
* gnu/packages/patches/nix-dont-build-html-doc.diff: New file.
* gnu/local.mk(dist_patch_DATA): Add corresponding entry.
Signed-off-by: Oleg Pykhalov <go.wigust@gmail.com>
2022-01-11 10:10:01 -05:00
|
|
|
"--enable-doc-gen" configure flag will enable HTML document generation that requires mdbook.
|
|
|
|
We can't simply disable it because we need manpages.
|
|
|
|
|
|
|
|
Author: Zhu Zihao <all_but_last@163.com>
|
|
|
|
|
|
|
|
--- a/doc/manual/local.mk
|
|
|
|
+++ b/doc/manual/local.mk
|
2023-06-04 12:43:46 -04:00
|
|
|
@@ -138,11 +138,6 @@
|
gnu: nix: Update to 2.4.
* gnu/packages/package-management.scm (nix): Update to 2.4.
[source]: Switch to Github repository since upstream no longer provides
tarball.
[native-inputs]: Add autoconf, autoconf-archive, automake, bison, flex, gcc,
googletest, jq, libtool.
[inputs]: Add libarchive, libcpuid, lowdown, zlib.
* gnu/packages/patches/nix-dont-build-html-doc.diff: New file.
* gnu/local.mk(dist_patch_DATA): Add corresponding entry.
Signed-off-by: Oleg Pykhalov <go.wigust@gmail.com>
2022-01-11 10:10:01 -05:00
|
|
|
$(trace-gen) $(dummy-env) NIX_PATH=nix/corepkgs=corepkgs $(bindir)/nix __dump-builtins > $@.tmp
|
|
|
|
@mv $@.tmp $@
|
|
|
|
|
|
|
|
-# Generate the HTML manual.
|
2023-06-04 12:43:46 -04:00
|
|
|
-.PHONY: manual-html
|
|
|
|
-manual-html: $(docdir)/manual/index.html
|
gnu: nix: Update to 2.4.
* gnu/packages/package-management.scm (nix): Update to 2.4.
[source]: Switch to Github repository since upstream no longer provides
tarball.
[native-inputs]: Add autoconf, autoconf-archive, automake, bison, flex, gcc,
googletest, jq, libtool.
[inputs]: Add libarchive, libcpuid, lowdown, zlib.
* gnu/packages/patches/nix-dont-build-html-doc.diff: New file.
* gnu/local.mk(dist_patch_DATA): Add corresponding entry.
Signed-off-by: Oleg Pykhalov <go.wigust@gmail.com>
2022-01-11 10:10:01 -05:00
|
|
|
-install: $(docdir)/manual/index.html
|
2023-06-04 12:43:46 -04:00
|
|
|
-
|
gnu: nix: Update to 2.4.
* gnu/packages/package-management.scm (nix): Update to 2.4.
[source]: Switch to Github repository since upstream no longer provides
tarball.
[native-inputs]: Add autoconf, autoconf-archive, automake, bison, flex, gcc,
googletest, jq, libtool.
[inputs]: Add libarchive, libcpuid, lowdown, zlib.
* gnu/packages/patches/nix-dont-build-html-doc.diff: New file.
* gnu/local.mk(dist_patch_DATA): Add corresponding entry.
Signed-off-by: Oleg Pykhalov <go.wigust@gmail.com>
2022-01-11 10:10:01 -05:00
|
|
|
# Generate 'nix' manpages.
|
|
|
|
install: $(mandir)/man1/nix3-manpages
|
2023-06-04 12:43:46 -04:00
|
|
|
man: doc/manual/generated/man1/nix3-manpages
|
|
|
|
@@ -167,23 +162,4 @@
|
gnu: nix: Update to 2.4.
* gnu/packages/package-management.scm (nix): Update to 2.4.
[source]: Switch to Github repository since upstream no longer provides
tarball.
[native-inputs]: Add autoconf, autoconf-archive, automake, bison, flex, gcc,
googletest, jq, libtool.
[inputs]: Add libarchive, libcpuid, lowdown, zlib.
* gnu/packages/patches/nix-dont-build-html-doc.diff: New file.
* gnu/local.mk(dist_patch_DATA): Add corresponding entry.
Signed-off-by: Oleg Pykhalov <go.wigust@gmail.com>
2022-01-11 10:10:01 -05:00
|
|
|
done
|
|
|
|
@touch $@
|
|
|
|
|
2023-06-04 12:43:46 -04:00
|
|
|
-$(docdir)/manual/index.html: $(MANUAL_SRCS) $(d)/book.toml $(d)/anchors.jq $(d)/custom.css $(d)/src/SUMMARY.md $(d)/src/command-ref/new-cli $(d)/src/contributing/experimental-feature-descriptions.md $(d)/src/command-ref/conf-file.md $(d)/src/language/builtins.md
|
|
|
|
- $(trace-gen) \
|
|
|
|
- tmp="$$(mktemp -d)"; \
|
|
|
|
- cp -r doc/manual "$$tmp"; \
|
|
|
|
- find "$$tmp" -name '*.md' | while read -r file; do \
|
|
|
|
- $(call process-includes,$$file,$$file); \
|
|
|
|
- done; \
|
|
|
|
- find "$$tmp" -name '*.md' | while read -r file; do \
|
|
|
|
- docroot="$$(realpath --relative-to="$$(dirname "$$file")" $$tmp/manual/src)"; \
|
|
|
|
- sed -i "s,@docroot@,$$docroot,g" "$$file"; \
|
|
|
|
- done; \
|
|
|
|
- set -euo pipefail; \
|
|
|
|
- RUST_LOG=warn mdbook build "$$tmp/manual" -d $(DESTDIR)$(docdir)/manual.tmp 2>&1 \
|
|
|
|
- | { grep -Fv "because fragment resolution isn't implemented" || :; }; \
|
|
|
|
- rm -rf "$$tmp/manual"
|
|
|
|
- @rm -rf $(DESTDIR)$(docdir)/manual
|
|
|
|
- @mv $(DESTDIR)$(docdir)/manual.tmp/html $(DESTDIR)$(docdir)/manual
|
|
|
|
- @rm -rf $(DESTDIR)$(docdir)/manual.tmp
|
|
|
|
-
|
gnu: nix: Update to 2.4.
* gnu/packages/package-management.scm (nix): Update to 2.4.
[source]: Switch to Github repository since upstream no longer provides
tarball.
[native-inputs]: Add autoconf, autoconf-archive, automake, bison, flex, gcc,
googletest, jq, libtool.
[inputs]: Add libarchive, libcpuid, lowdown, zlib.
* gnu/packages/patches/nix-dont-build-html-doc.diff: New file.
* gnu/local.mk(dist_patch_DATA): Add corresponding entry.
Signed-off-by: Oleg Pykhalov <go.wigust@gmail.com>
2022-01-11 10:10:01 -05:00
|
|
|
endif
|