Skip to content

Commit

Permalink
fix NixOS Options doc source build
Browse files Browse the repository at this point in the history
  • Loading branch information
mlvzk committed Apr 19, 2021
1 parent 7e905be commit abfb06d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/options_docsource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ pub fn get_nixos_json_doc_path() -> Result<PathBuf, std::io::Error> {
let base_path_output = Command::new("nix-build")
.env("NIXPKGS_ALLOW_UNFREE", "1")
.env("NIXPKGS_ALLOW_BROKEN", "1")
.env("NIXPKGS_ALLOW_INSECURE", "1")
.arg("--no-out-link")
.arg("-E")
.arg(r#"with import <nixpkgs> {}; let eval = import (pkgs.path + "/nixos/lib/eval-config.nix") { modules = []; }; opts = (nixosOptionsDoc { options = eval.options; }).optionsJSON; in runCommandLocal "options.json" { inherit opts; } "cp $opts/share/doc/nixos/options.json $out""#)
Expand Down

0 comments on commit abfb06d

Please sign in to comment.