git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #45884 from obsidiansystems/improve-isArm-msg

stdenv: Better message for deprecated `isArm`

commit4663cd2b3b2f64210f61265068c294a21b70f5ee authorJohn Ericson <mail@JohnEricson.me> dateFri 31 Aug 2018, 16:21 (8 years ago) parent1a1d5440a94867
2 files changed+4−2
pkgs/development/libraries/libgpg-error/default.nix+1−1 pkgs/stdenv/generic/default.nix+3−1
pkgs/development/libraries/libgpg-error/default.nix+1−1
@@ -34,7 +34,7 @@ in stdenv.mkDerivation (rec {
3434
3535 postPatch = ''
3636 sed '/BUILD_TIMESTAMP=/s/=.*/=1970-01-01T00:01+0000/' -i ./configure
37− '' + lib.optionalString (stdenv.hostPlatform.isArm && stdenv.buildPlatform != stdenv.hostPlatform ) ''
37+ '' + lib.optionalString (stdenv.hostPlatform.isAarch32 && stdenv.buildPlatform != stdenv.hostPlatform) ''
3838 ln -s lock-obj-pub.arm-unknown-linux-gnueabi.h src/syscfg/lock-obj-pub.linux-gnueabihf.h
3939 '' + lib.optionalString stdenv.hostPlatform.isMusl ''
4040 ln -s lock-obj-pub.x86_64-pc-linux-musl.h src/syscfg/lock-obj-pub.linux-musl.h
pkgs/stdenv/generic/default.nix+3−1
@@ -123,7 +123,9 @@ let
123123 inherit (hostPlatform)
124124 isDarwin isLinux isSunOS isCygwin isFreeBSD isOpenBSD
125125 isi686 isx86_64 is64bit isAarch32 isAarch64 isMips isBigEndian;
126− isArm = builtins.trace "stdenv.isArm is deprecated after 18.03" hostPlatform.isArm;
126+ isArm = builtins.trace
127+ "`stdenv.isArm` is deprecated after 18.03. Please use `stdenv.isAarch32` instead"
128+ hostPlatform.isAarch32;
127129
128130 # Whether we should run paxctl to pax-mark binaries.
129131 needsPax = isLinux;