Skip to content

Commit

Permalink
🐛 Fix nativeBuildInputs for Python docs
Browse files Browse the repository at this point in the history
It was using a nested property combined with or, causing it to
always evaluate to an empty array.
  • Loading branch information
abbec committed Mar 21, 2024
1 parent 88f693b commit 420e649
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed
- Sphinx documentation can now access the nativeBuildInputs of the source package.

## [4.1.1] - 2024-03-21

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion python/docs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ in
nedrylandType = "documentation";
nativeBuildInputs = [ sphinx ]
++ lib.optional (sphinxTheme != null) pythonVersion.pkgs."${sphinxTheme.name}"
++ attrs.pythonPackageArgs.nativeBuildInputs or [ ];
++ attrs.nativeBuildInputs or [ ];
buildInputs = (attrs.buildInputs or [ ])
++ (attrs.propagatedBuildInputs or [ ]);

Expand Down

0 comments on commit 420e649

Please sign in to comment.