about summary refs log tree commit diff
path: root/pkgs/stdenv
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2023-10-31 12:37:14 +0100
committerRobert Hensing <robert@roberthensing.nl>2023-10-31 12:44:36 +0100
commite143a933f67eeaadc6aeaf56740bcf040f89b31f (patch)
tree5e947b5953ecd7b69af0ebe8fba4832b034904d4 /pkgs/stdenv
parent9a4908ee615952792d0666b62e8ec110dabe020c (diff)
downloadnixlib-e143a933f67eeaadc6aeaf56740bcf040f89b31f.tar
nixlib-e143a933f67eeaadc6aeaf56740bcf040f89b31f.tar.gz
nixlib-e143a933f67eeaadc6aeaf56740bcf040f89b31f.tar.bz2
nixlib-e143a933f67eeaadc6aeaf56740bcf040f89b31f.tar.lz
nixlib-e143a933f67eeaadc6aeaf56740bcf040f89b31f.tar.xz
nixlib-e143a933f67eeaadc6aeaf56740bcf040f89b31f.tar.zst
nixlib-e143a933f67eeaadc6aeaf56740bcf040f89b31f.zip
check-meta.nix: Fix flake note
- These new-cli commands can be used with `-f`, in which case they're
  evaluated with pure evaluation disabled.
- Nix 2.4+ is not part of the condition; "flakes" is fully descriptive
  and more relatable.
- Don't suggest that it only enables this variable.
- Just don't say too much.
Diffstat (limited to 'pkgs/stdenv')
-rw-r--r--pkgs/stdenv/generic/check-meta.nix5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgs/stdenv/generic/check-meta.nix b/pkgs/stdenv/generic/check-meta.nix
index 63fd00d266e4..9a794531bc1d 100644
--- a/pkgs/stdenv/generic/check-meta.nix
+++ b/pkgs/stdenv/generic/check-meta.nix
@@ -152,9 +152,8 @@ let
 
     # flakeNote will be printed in the remediation messages below.
     flakeNote = "
- Note: For `nix shell`, `nix build`, `nix develop` or any other Nix 2.4+
- (Flake) command, `--impure` must be passed in order to read this
- environment variable.
+   Note: When using `nix shell`, `nix build`, `nix develop`, etc with a flake,
+         then pass `--impure` in order to allow use of environment variables.
     ";
 
   remediate_allowlist = allow_attr: rebuild_amendment: attrs: