From 75a8378befebd4e5d0add0983750576c7871b6ee Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Tue, 8 Aug 2023 02:19:31 +0200 Subject: [PATCH] spike: don't assume naming of cross C compiler --- pkgs/applications/virtualization/spike/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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