diff options
author | Winter <winter@winter.cafe> | 2022-08-05 23:30:00 -0400 |
---|---|---|
committer | Winter <winter@winter.cafe> | 2022-10-25 22:58:50 -0400 |
commit | f540aeda6f677354f1e7144ab04352f61aaa0118 (patch) | |
tree | c4c2ebdea9b40ccb6c33986204179e7ea928bd9f /nixos/lib/make-options-doc/default.nix | |
parent | 497f3a20363bc0ea29b092050dc153d79a89b559 (diff) |
nixos/make-options-doc: fix JSON generation on Darwin
Diffstat (limited to 'nixos/lib/make-options-doc/default.nix')
-rw-r--r-- | nixos/lib/make-options-doc/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/lib/make-options-doc/default.nix b/nixos/lib/make-options-doc/default.nix index 9a75956b0d695..dde3cac1c1bab 100644 --- a/nixos/lib/make-options-doc/default.nix +++ b/nixos/lib/make-options-doc/default.nix @@ -125,7 +125,11 @@ in rec { nativeBuildInputs = [ pkgs.brotli (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; includeSiteCustomize = true; }); |