aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/stdenv/generic/check-meta.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/stdenv/generic/check-meta.nix')
-rw-r--r--nixpkgs/pkgs/stdenv/generic/check-meta.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/nixpkgs/pkgs/stdenv/generic/check-meta.nix b/nixpkgs/pkgs/stdenv/generic/check-meta.nix
index 21ae809a222..c06f17b6fc1 100644
--- a/nixpkgs/pkgs/stdenv/generic/check-meta.nix
+++ b/nixpkgs/pkgs/stdenv/generic/check-meta.nix
@@ -108,7 +108,12 @@ let
You can install it anyway by whitelisting this package, using the
following methods:
- a) for `nixos-rebuild` you can add ‘${getName attrs}’ to
+ a) To temporarily allow all insecure packages, you can use an environment
+ variable for a single invocation of the nix tools:
+
+ $ export NIXPKGS_ALLOW_INSECURE=1
+
+ b) for `nixos-rebuild` you can add ‘${getName attrs}’ to
`nixpkgs.config.permittedInsecurePackages` in the configuration.nix,
like so:
@@ -118,9 +123,9 @@ let
];
}
- b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
- ‘${getName attrs}’ to `permittedInsecurePackages` in
- ~/.config/nixpkgs/config.nix, like so:
+ c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
+ ‘${getName attrs}’ to `permittedInsecurePackages` in
+ ~/.config/nixpkgs/config.nix, like so:
{
permittedInsecurePackages = [