spike: do not re-evaluate nixpkgs

Avoid breaking flakes pure evaluation by using pkgsCross to get RISC-V
test binaries.
This commit is contained in:
Julian Stecklina 2021-12-29 12:09:45 +01:00
parent 4ea5a47297
commit 8e3ff64369

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchgit, dtc, fetchpatch }:
{ lib, stdenv, fetchgit, dtc, fetchpatch, pkgsCross }:
stdenv.mkDerivation rec {
pname = "spike";
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
doInstallCheck = true;
installCheckPhase =
let
riscvPkgs = import ../../../.. { crossSystem = lib.systems.examples.riscv64-embedded; };
riscvPkgs = pkgsCross.riscv64-embedded;
in
''
runHook preInstallCheck