stdenv: Better message for deprecated `isArm`
The message should say what to do instead.
This commit is contained in:
parent
13c6a9ba86
commit
82110ae656
|
@ -123,7 +123,9 @@ let
|
||||||
inherit (hostPlatform)
|
inherit (hostPlatform)
|
||||||
isDarwin isLinux isSunOS isCygwin isFreeBSD isOpenBSD
|
isDarwin isLinux isSunOS isCygwin isFreeBSD isOpenBSD
|
||||||
isi686 isx86_64 is64bit isAarch32 isAarch64 isMips isBigEndian;
|
isi686 isx86_64 is64bit isAarch32 isAarch64 isMips isBigEndian;
|
||||||
isArm = builtins.trace "stdenv.isArm is deprecated after 18.03" hostPlatform.isArm;
|
isArm = builtins.trace
|
||||||
|
"`stdenv.isArm` is deprecated after 18.03. Please use `stdenv.isAarch32` instead"
|
||||||
|
hostPlatform.isAarch32;
|
||||||
|
|
||||||
# Whether we should run paxctl to pax-mark binaries.
|
# Whether we should run paxctl to pax-mark binaries.
|
||||||
needsPax = isLinux;
|
needsPax = isLinux;
|
||||||
|
|
Loading…
Reference in New Issue