treewide: simplify exec format conditionals

This commit is contained in:
Ryan Burns
2024-01-07 17:43:33 -08:00
parent 1bf1c7a244
commit c324705cc3
13 changed files with 16 additions and 26 deletions
+1 -2
View File
@@ -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'