As of recently, Nix 2.6 from Ubuntu 22.04 became too old to evaluate nixpkgs. A new-enough version of Nix is available as part of Ubuntu 24.04, but those newer versions of Nix aren't happy with our rather primitive proot workaround anymore. Thankfully, someone already made a version of Nix that does all the heavy lifting for running in unprivileged environments like the one Read the Docs provides. So we used that instead.
31 lines
672 B
YAML
31 lines
672 B
YAML
# Read the Docs configuration file
|
|
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
|
|
|
# Required
|
|
version: 2
|
|
|
|
build:
|
|
os: ubuntu-24.04
|
|
tools:
|
|
python: "3"
|
|
apt_packages:
|
|
- curl
|
|
- proot
|
|
jobs:
|
|
pre_install:
|
|
- curl -L https://github.com/DavHau/nix-portable/releases/latest/download/nix-portable-$(uname -m) > ./nix-portable
|
|
- chmod +x ./nix-portable
|
|
- ./nix-portable nix build --print-build-logs .#optionsDoc
|
|
- ./nix-portable nix store cat $(readlink result) > docs/options.md
|
|
|
|
sphinx:
|
|
configuration: docs/conf.py
|
|
|
|
formats:
|
|
- pdf
|
|
- epub
|
|
|
|
python:
|
|
install:
|
|
- requirements: docs/requirements.txt
|