-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 'hdk' reference in integrity zome
- Loading branch information
1 parent
f8d42fd
commit 514d826
Showing
4 changed files
with
39 additions
and
210 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,41 @@ | ||
{ | ||
description = "Flake for Holochain app development"; | ||
description = "Holochain Development Env"; | ||
|
||
inputs = { | ||
holonix.url = "github:holochain/holonix?ref=main"; | ||
holonix.inputs.holochain.url = "github:holochain/holochain?ref=holochain-0.4.0-dev.18"; | ||
|
||
nixpkgs.follows = "holonix/nixpkgs"; | ||
flake-parts.follows = "holonix/flake-parts"; | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | ||
}; | ||
|
||
outputs = inputs@{ flake-parts, ... }: flake-parts.lib.mkFlake { inherit inputs; } { | ||
systems = builtins.attrNames inputs.holonix.devShells; | ||
perSystem = { inputs', pkgs, ... }: { | ||
formatter = pkgs.nixpkgs-fmt; | ||
outputs = { self, nixpkgs }: | ||
let | ||
system = "x86_64-linux"; | ||
pkgs = import ./pkgs.nix { | ||
pkgs = nixpkgs.legacyPackages.${system}; | ||
inherit system; | ||
}; | ||
in | ||
{ | ||
devShells.${system} = { | ||
default = pkgs.mkShell { | ||
buildInputs = with pkgs; [ | ||
holochain_0-4 | ||
lair-keystore_0-4-5 | ||
hc_0-4 | ||
|
||
devShells.default = pkgs.mkShell { | ||
inputsFrom = [ inputs'.holonix.devShells ]; | ||
rustup | ||
cargo | ||
rustc | ||
|
||
packages = (with inputs'.holonix.packages; [ | ||
holochain | ||
lair-keystore | ||
hn-introspect | ||
rust # For Rust development, with the WASM target included for zome builds | ||
]) ++ (with pkgs; [ | ||
nodejs_20 # For UI development | ||
binaryen # For WASM optimisation | ||
# Add any other packages you need here | ||
]); | ||
nodejs_22 | ||
]; | ||
|
||
shellHook = '' | ||
export PS1='\[\033[1;34m\][holonix:\w]\$\[\033[0m\] ' | ||
''; | ||
shellHook = '' | ||
export PS1="\[\e[1;32m\](flake-env)\[\e[0m\] \[\e[1;34m\]\u@\h:\w\[\e[0m\]$ " | ||
export CARGO_HOME=$(pwd)/.cargo | ||
export RUSTUP_HOME=$(pwd)/.rustup | ||
rustup default stable | ||
rustup target add wasm32-unknown-unknown | ||
''; | ||
}; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters