aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index 942b49f..0c402c2 100644
--- a/flake.nix
+++ b/flake.nix
@@ -48,13 +48,20 @@
# - guest crate is located at zkvms/pname/guest and is named "guest"
withCustomPhases = guest: currentPackage: let
hostBin = currentPackage.hostBin or ("host-" + currentPackage.pname);
+ zkpPath = "zkvms/${currentPackage.pname}/guest/src/zkp";
in with currentPackage; {
phases = [
- "unpackPhase" "patchPhase" "configurePhase" # Standard phases
+ "unpackPhase" # Standard phases
+ "linkGuest" # Custom phase
+ "patchPhase" "configurePhase" # Standard phases
"buildGuestPhase" # Custom phase
"buildPhase" "checkPhase" "installPhase" "fixupPhase" # Standard phases
];
+ linkGuest = ''
+ ln -s ../../../../guests/${guest} ./${zkpPath}
+ '';
+
buildGuestPhase = ''
pushd zkvms/${currentPackage.pname}/guest
runHook preBuildGuest