Skip to content

Commit

Permalink
Improve Nix development experience (#128)
Browse files Browse the repository at this point in the history
* chore: add direnv support

* chore: add perl package to devShell for openssl

* chore: change shebang path to use env

* docs: update README to run tests in release mode
  • Loading branch information
cdunster authored Nov 28, 2024
1 parent c623c0c commit ed739f8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Types and bindings to connect easily to a running Holochain conductor from Rust.

``` bash
./build-fixture.sh
cargo test
cargo test --release
```

## Contribute
Expand Down
2 changes: 1 addition & 1 deletion build-fixture.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

CARGO_HOME=./fixture/zomes/foo/.cargo cargo build -p test_wasm_foo --release --target wasm32-unknown-unknown --target-dir ./fixture/zomes/foo/target
Expand Down
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
inputs'.holonix.packages.lair-keystore
inputs'.holonix.packages.rust
pkgs.go
pkgs.perl
] ++ (pkgs.lib.optionals pkgs.stdenv.isDarwin [
# needed to build Holochain on macos
pkgs.darwin.apple_sdk.frameworks.SystemConfiguration
pkgs.bzip2
]);
};
};
Expand Down

0 comments on commit ed739f8

Please sign in to comment.