mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
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:
parent
4ea5a47297
commit
8e3ff64369
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue