Merge pull request #179506 from SuperSandro2000/pyopenssl-ghc

Revert GHC pyopenssl workarounds

authored by Sandro and committed by GitHub fa3f2e33 f9f65f06

+5 -24
-17
pkgs/top-level/all-packages.nix
··· 20978 20978 20979 20979 sphinx = with python3Packages; toPythonApplication sphinx; 20980 20980 20981 - # A variation of sphinx that is only suitable for offline use as it excludes 20982 - # pyopenssl, which is broken on aarch64-darwin. 20983 - # https://github.com/NixOS/nixpkgs/issues/175875 20984 - sphinx_offline = 20985 - if !(stdenv.buildPlatform.isDarwin && stdenv.buildPlatform.isAarch64) 20986 - then sphinx 20987 - else 20988 - sphinx.override (o: { 20989 - requests = pkgsBuildTarget.python3Packages.requests.override (o: { 20990 - urllib3 = pkgsBuildTarget.python3Packages.urllib3.overrideAttrs (o: { 20991 - # urllib3 adds the optional pyopenssl to propagatedBuildInputs 20992 - # pkgs/development/python-modules/urllib3/default.nix 20993 - propagatedBuildInputs = []; 20994 - }); 20995 - }); 20996 - }); 20997 - 20998 20981 sphinx-autobuild = with python3Packages; toPythonApplication sphinx-autobuild; 20999 20982 21000 20983 sphinx-serve = with python3Packages; toPythonApplication sphinx-serve;
+5 -7
pkgs/top-level/haskell-packages.nix
··· 49 49 # Use this rather than `rec { ... }` below for sake of overlays. 50 50 inherit (pkgs.haskell) compiler packages; 51 51 52 - sphinx = buildPackages.sphinx_offline; 53 - 54 52 in { 55 53 lib = haskellLibUncomposable; 56 54 ··· 99 97 packages.ghc8102Binary 100 98 else 101 99 packages.ghc865Binary; 102 - inherit sphinx; 100 + inherit (buildPackages.python3Packages) sphinx; 103 101 buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_7; 104 102 llvmPackages = pkgs.llvmPackages_7; 105 103 }; ··· 112 110 packages.ghc8107BinaryMinimal 113 111 else 114 112 packages.ghc8107Binary; 115 - inherit sphinx; 113 + inherit (buildPackages.python3Packages) sphinx; 116 114 # Need to use apple's patched xattr until 117 115 # https://github.com/xattr/xattr/issues/44 and 118 116 # https://github.com/xattr/xattr/issues/55 are solved. ··· 128 126 packages.ghc8107BinaryMinimal 129 127 else 130 128 packages.ghc8107Binary; 131 - inherit sphinx; 129 + inherit (buildPackages.python3Packages) sphinx; 132 130 inherit (buildPackages.darwin) autoSignDarwinBinariesHook xattr; 133 131 buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_12; 134 132 llvmPackages = pkgs.llvmPackages_12; ··· 140 138 packages.ghc8107BinaryMinimal 141 139 else 142 140 packages.ghc8107Binary; 143 - inherit sphinx; 141 + inherit (buildPackages.python3Packages) sphinx; 144 142 # Need to use apple's patched xattr until 145 143 # https://github.com/xattr/xattr/issues/44 and 146 144 # https://github.com/xattr/xattr/issues/55 are solved. ··· 150 148 }; 151 149 ghcHEAD = callPackage ../development/compilers/ghc/head.nix { 152 150 bootPkgs = packages.ghc8107Binary; 153 - inherit sphinx; 151 + inherit (buildPackages.python3Packages) sphinx; 154 152 # Need to use apple's patched xattr until 155 153 # https://github.com/xattr/xattr/issues/44 and 156 154 # https://github.com/xattr/xattr/issues/55 are solved.