stdenv: Better message for deprecated isArm

The message should say what to do instead.
This commit is contained in:
John Ericson 2018-08-27 14:39:58 -04:00
parent 13c6a9ba86
commit 82110ae656

View File

@ -123,7 +123,9 @@ let
inherit (hostPlatform)
isDarwin isLinux isSunOS isCygwin isFreeBSD isOpenBSD
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.
needsPax = isLinux;