diff options
author | pennae <github@quasiparticle.net> | 2023-06-13 14:05:40 +0200 |
---|---|---|
committer | pennae <github@quasiparticle.net> | 2023-06-13 16:56:31 +0200 |
commit | af1f07ff03c59b081ff29f069f6c28009dfffad7 (patch) | |
tree | 09a16801e315b392cf3b89254743a19409383ec2 /nixos/lib/make-options-doc | |
parent | 34eeac55449400f866573a3c9027c1d336db40a4 (diff) | |
download | nixpkgs-af1f07ff03c59b081ff29f069f6c28009dfffad7.tar nixpkgs-af1f07ff03c59b081ff29f069f6c28009dfffad7.tar.gz nixpkgs-af1f07ff03c59b081ff29f069f6c28009dfffad7.tar.bz2 nixpkgs-af1f07ff03c59b081ff29f069f6c28009dfffad7.tar.lz nixpkgs-af1f07ff03c59b081ff29f069f6c28009dfffad7.tar.xz nixpkgs-af1f07ff03c59b081ff29f069f6c28009dfffad7.tar.zst nixpkgs-af1f07ff03c59b081ff29f069f6c28009dfffad7.zip |
nixos/make-options-doc: check for manual paths in options.json
since we no longer use the docbook path the check there will no longer fire. add one to optionsJSON to not lose this functionality.
Diffstat (limited to 'nixos/lib/make-options-doc')
-rw-r--r-- | nixos/lib/make-options-doc/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/lib/make-options-doc/default.nix b/nixos/lib/make-options-doc/default.nix index db0e0a45193..5cfc24533c2 100644 --- a/nixos/lib/make-options-doc/default.nix +++ b/nixos/lib/make-options-doc/default.nix @@ -143,6 +143,14 @@ in rec { $baseJSON $options \ > $dst/options.json + if grep /nixpkgs/nixos/modules $dst/options.json; then + echo "The manual appears to depend on the location of Nixpkgs, which is bad" + echo "since this prevents sharing via the NixOS channel. This is typically" + echo "caused by an option default that refers to a relative path (see above" + echo "for hints about the offending path)." + exit 1 + fi + brotli -9 < $dst/options.json > $dst/options.json.br mkdir -p $out/nix-support |