4 antora-lunr-extension-test ? false,
10 stdenvNoCC.mkDerivation {
11 name = "${antora.pname}${lib.optionalString antora-lunr-extension-test "-${antora-lunr-extension.pname}"}-test";
12 src = ./minimal_working_example;
16 date = lib.escapeShellArg "1/1/1970 00:00:00 +0000";
19 # > In order to use a local content repository with Antora, even when using
20 # > the worktree (HEAD), the repository must have at least one commit.
22 # > -- https://docs.antora.org/antora/3.1/playbook/content-source-url
24 GIT_AUTHOR_DATE=${date} \
26 GIT_AUTHOR_NAME=Nixpkgs \
27 GIT_COMMITTER_DATE=${date} \
28 GIT_COMMITTER_EMAIL= \
29 GIT_COMMITTER_NAME=Nixpkgs \
30 git commit --allow-empty --allow-empty-message --message ""
35 playbook = builtins.toFile "antora-playbook.json" (
37 content.sources = [ { url = "~+"; } ];
38 runtime.log.failure_level = "warn";
43 # The --to-dir and --ui-bundle-url options are not included in the
44 # playbook due to Antora and Nix limitations.
46 lib.cli.toGNUCommandLineShell { } {
47 cache-dir = "$(mktemp --directory)";
48 extension = if antora-lunr-extension-test then antora-lunr-extension else false;
49 to-dir = placeholder "out";
50 ui-bundle-url = "${antora-ui-default}/ui-bundle.zip";
61 description = "Reproducible Antora test framework";
62 license = lib.licenses.mit;
63 maintainers = [ lib.maintainers.naho ];
64 platforms = lib.platforms.all;