Skip to content

Use nixpkgs variants of Sphinx packages#3227

Merged
michaelpj merged 1 commit into
haskell:masterfrom
ozkutuk:fix-docs-nix-build
Sep 27, 2022
Merged

Use nixpkgs variants of Sphinx packages#3227
michaelpj merged 1 commit into
haskell:masterfrom
ozkutuk:fix-docs-nix-build

Conversation

@ozkutuk

@ozkutuk ozkutuk commented Sep 27, 2022

Copy link
Copy Markdown
Collaborator

Fixes #3211

This PR replaces manually specified myst-parser and sphinx_rtd_theme packages with their counterparts already packaged on nixpkgs. With this change, poetry2nix is no more used, therefore that is removed as well.

The documentation build via Nix (nix build .#docs) still fails. However, the cause of failure is not related to the Nix infrastructure, but a warning in the documentation source. Nix build of the documentation promotes warnings to errors, hence the failure. We need to either lift this restriction, or actually fix the warning. Either way, that should be handled in a separate PR.

This commit replaces manually specified `myst-parser` and `sphinx_rtd_theme`
packages with their counterparts already packaged on nixpkgs. With this
change, `poetry2nix` is no more used, therefore that is removed as well.

@michaelpj michaelpj left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, thank you. I think myst_parser was not in nixpkgs when I wrote this.

@michaelpj
michaelpj merged commit 468db6f into haskell:master Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Building documentation fails with a Python import error

2 participants