diff options
author | Ryan Burns <rtburns@protonmail.com> | 2024-01-07 17:43:33 -0800 |
---|---|---|
committer | Ryan Burns <rtburns@protonmail.com> | 2024-01-07 17:43:33 -0800 |
commit | c324705cc3ac228eeee1d72f4ee4ea46fc5e1283 (patch) | |
tree | 4128dbb2429551d5ebcb8c90fc9fd6b31cc055f8 /pkgs/development/compilers/rust | |
parent | 1bf1c7a244e63f4e550815ea3432fb83c5f69b8a (diff) | |
download | nixlib-c324705cc3ac228eeee1d72f4ee4ea46fc5e1283.tar nixlib-c324705cc3ac228eeee1d72f4ee4ea46fc5e1283.tar.gz nixlib-c324705cc3ac228eeee1d72f4ee4ea46fc5e1283.tar.bz2 nixlib-c324705cc3ac228eeee1d72f4ee4ea46fc5e1283.tar.lz nixlib-c324705cc3ac228eeee1d72f4ee4ea46fc5e1283.tar.xz nixlib-c324705cc3ac228eeee1d72f4ee4ea46fc5e1283.tar.zst nixlib-c324705cc3ac228eeee1d72f4ee4ea46fc5e1283.zip |
treewide: simplify exec format conditionals
Diffstat (limited to 'pkgs/development/compilers/rust')
-rw-r--r-- | pkgs/development/compilers/rust/cargo.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/development/compilers/rust/cargo.nix b/pkgs/development/compilers/rust/cargo.nix index ff0ecf45fd23..1377cfad6c6c 100644 --- a/pkgs/development/compilers/rust/cargo.nix +++ b/pkgs/development/compilers/rust/cargo.nix @@ -98,8 +98,7 @@ rustPlatform.buildRustPackage.override { # Disable check phase as there are failures (4 tests fail) doCheck = false; - doInstallCheck = !stdenv.hostPlatform.isStatic && - stdenv.hostPlatform.parsed.kernel.execFormat == lib.systems.parse.execFormats.elf; + doInstallCheck = !stdenv.hostPlatform.isStatic && stdenv.hostPlatform.isElf; installCheckPhase = '' runHook preInstallCheck readelf -a $out/bin/.cargo-wrapped | grep -F 'Shared library: [libcurl.so' |