cargo: fix install check phase when cross

This commit is contained in:
Tristan Ross
2025-01-15 21:07:30 -08:00
committed by Alyssa Ross
parent c1a7369bfb
commit 0b0a0bbaf1
+1 -1
View File
@@ -65,7 +65,7 @@ rustPlatform.buildRustPackage.override {
doInstallCheck = !stdenv.hostPlatform.isStatic && stdenv.hostPlatform.isElf;
installCheckPhase = ''
runHook preInstallCheck
readelf -a $out/bin/.cargo-wrapped | grep -F 'Shared library: [libcurl.so'
${stdenv.cc.targetPrefix}readelf -a $out/bin/.cargo-wrapped | grep -F 'Shared library: [libcurl.so'
runHook postInstallCheck
'';