git.iko.soy/typeable/nixpkgs
on master help sign in
spike: fix build
commit44c21068aeab776bb4ead395e3b8bef437977d98 authorLancelot SIX <lsix@lancelotsix.com> dateFri 12 Mar 2021, 00:11 (6 years ago) parentbc1069b
1 file changed+10−2
pkgs/applications/virtualization/spike/default.nix+10−2
pkgs/applications/virtualization/spike/default.nix+10−2
@@ -1,4 +1,4 @@
1−{ lib, stdenv, fetchgit, dtc, nixosTests }:
1+{ lib, stdenv, fetchgit, dtc, nixosTests, fetchpatch }:
22
33stdenv.mkDerivation rec {
44 pname = "spike";
@@ -13,7 +13,15 @@ stdenv.mkDerivation rec {
1313 nativeBuildInputs = [ dtc ];
1414 enableParallelBuilding = true;
1515
16− patchPhase = ''
16+ patches = [
17+ # Add missing headers to fix build.
18+ (fetchpatch {
19+ url = "https://github.com/riscv/riscv-isa-sim/commit/b3855682c2d744c613d2ffd6b53e3f021ecea4f3.patch";
20+ sha256 = "1v1mpp4iddf5n4h3kmj65g075m7xc31bxww7gldnmgl607ma7cnl";
21+ })
22+ ];
23+
24+ postPatch = ''
1725 patchShebangs scripts/*.sh
1826 patchShebangs tests/ebreak.py
1927 '';