From 6e2650b6d3739b6fd864a90e73d6c37eeab19040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Thu, 17 Mar 2022 22:31:30 +0100 Subject: [PATCH] flake-info: don't allow options to evaluate disallowed packages (#449) Options shouldn't evaluate packages in documentation attributes. These are errors that should be fixed in nixpkgs, which https://github.com/NixOS/nixpkgs/pull/136909 did. --- flake-info/src/commands/nixpkgs_info.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/flake-info/src/commands/nixpkgs_info.rs b/flake-info/src/commands/nixpkgs_info.rs index caef5b2..182af63 100644 --- a/flake-info/src/commands/nixpkgs_info.rs +++ b/flake-info/src/commands/nixpkgs_info.rs @@ -81,14 +81,6 @@ pub fn get_nixpkgs_options + Display>( "nixos-options", ]); - // Nix might fail to evaluate some options that reference disallowed packages - let mut env = HashMap::new(); - env.insert("NIXPKGS_ALLOW_BROKEN".into(), "1".into()); - env.insert("NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM".into(), "1".into()); - env.insert("NIXPKGS_ALLOW_UNFREE".into(), "1".into()); - env.insert("NIXPKGS_ALLOW_INSECURE".into(), "1".into()); - command.env = env; - command.enable_capture(); command.log_to = LogTo::Log; command.log_output_on_error = true;