Skip to content

Commit

Permalink
sphinx_offline: init
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Jun 26, 2022
1 parent f2537a5 commit b75a204
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20864,6 +20864,23 @@ with pkgs;

sphinx = with python3Packages; toPythonApplication sphinx;

# A variation of sphinx that is only suitable for offline use as it excludes
# pyopenssl, which is broken on aarch64-darwin.
# https://github.com/NixOS/nixpkgs/issues/175875
sphinx_offline =
if !(stdenv.buildPlatform.isDarwin && stdenv.buildPlatform.isAarch64)
then sphinx
else
sphinx.override (o: {
requests = pkgsBuildTarget.python3Packages.requests.override (o: {
urllib3 = pkgsBuildTarget.python3Packages.urllib3.overrideAttrs (o: {
# urllib3 adds the optional pyopenssl to propagatedBuildInputs
# pkgs/development/python-modules/urllib3/default.nix
propagatedBuildInputs = [];
});
});
});

sphinx-autobuild = with python3Packages; toPythonApplication sphinx-autobuild;

sphinx-serve = with python3Packages; toPythonApplication sphinx-serve;
Expand Down

0 comments on commit b75a204

Please sign in to comment.