nixos/make-options-doc: fix JSON generation on Darwin

This commit is contained in:
Winter 2022-08-05 23:30:00 -04:00
parent 497f3a2036
commit f540aeda6f

View File

@ -125,7 +125,11 @@ in rec {
nativeBuildInputs = [ nativeBuildInputs = [
pkgs.brotli pkgs.brotli
(let (let
self = (pkgs.python3Minimal.override { # python3Minimal can't be overridden with packages on Darwin, due to a missing framework.
# Instead of modifying stdenv, we take the easy way out, since most people on Darwin will
# just be hacking on the Nixpkgs manual (which also uses make-options-doc).
python = if pkgs.stdenv.isDarwin then pkgs.python3 else pkgs.python3Minimal;
self = (python.override {
inherit self; inherit self;
includeSiteCustomize = true; includeSiteCustomize = true;
}); });