diff --git a/pkgs/applications/virtualization/spike/default.nix b/pkgs/applications/virtualization/spike/default.nix index 291328ee7fe8..df967339f8f0 100644 --- a/pkgs/applications/virtualization/spike/default.nix +++ b/pkgs/applications/virtualization/spike/default.nix @@ -32,7 +32,7 @@ stdenv.mkDerivation rec { runHook preInstallCheck echo -e "#include\nint main() {printf(\"Hello, world\");return 0;}" > hello.c - ${riscvPkgs.stdenv.cc}/bin/riscv64-none-elf-gcc -o hello hello.c + ${riscvPkgs.stdenv.cc}/bin/${riscvPkgs.stdenv.cc.targetPrefix}cc -o hello hello.c $out/bin/spike -m64 ${riscvPkgs.riscv-pk}/bin/pk hello | grep -Fq "Hello, world" runHook postInstallCheck