Skip to content

Commit

Permalink
Fix 'hdk' reference in integrity zome
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbrisebois committed Aug 20, 2024
1 parent f8d42fd commit 514d826
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 210 deletions.
188 changes: 7 additions & 181 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 30 additions & 26 deletions flake.nix
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
'';
};
};
};
};
}
4 changes: 2 additions & 2 deletions pkgs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import (pkgs.fetchFromGitHub {
owner = "spartan-holochain-counsel";
repo = "nix-overlay";
rev = "9c0ed332596994faaacb35593a2d427f9ac38bf2";
sha256 = "E8dKMuhnd51Rh1tLud/asf/4TTFuZaIs0fZbe/rsUuQ=";
rev = "5bae4a38735d74633c9c089b5c896cb9631a295b";
sha256 = "E/FvMyUgEB5MYL+s46YSiHPOAJiurKZDMQy1oxak6bg=";
}) {
inherit pkgs;
inherit system;
Expand Down
1 change: 0 additions & 1 deletion zomes/deepkey/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use hdi_extensions::{
guest_error,
};
use hdi::prelude::*;
use hdk::prelude::debug;


pub fn serialize<T>(target: &T) -> ExternResult<Vec<u8>>
Expand Down

0 comments on commit 514d826

Please sign in to comment.