Skip to content

Commit 931a9d0

Browse files
nbdd0121marnovandermaas
authored andcommitted
Use dummy hash for simulator build
1 parent 0cbfe58 commit 931a9d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

flake.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,9 @@
100100
src = sonataSimulatorSource;
101101
buildInputs = with pkgs; [libelf zlib];
102102
nativeBuildInputs = [pkgs.verilator pythonEnv];
103-
inherit FLAKE_GIT_COMMIT;
104-
inherit FLAKE_GIT_DIRTY;
103+
# For simulator build, force the git commit to a dummy value, so we can cache the build properly.
104+
FLAKE_GIT_COMMIT = "0000000000000000000000000000000000000000";
105+
FLAKE_GIT_DIRTY = false;
105106
buildPhase = ''
106107
HOME=$TMPDIR fusesoc --cores-root=. run \
107108
--target=sim --setup --build lowrisc:sonata:system \

0 commit comments

Comments
 (0)