-
Notifications
You must be signed in to change notification settings - Fork 3
/
flake.nix
43 lines (38 loc) · 1.09 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
description = "Holochain Development Env";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import ./pkgs.nix {
pkgs = nixpkgs.legacyPackages.${system};
inherit system;
};
in
{
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
holochain_0-4
lair-keystore_0-5
hc_0-4
rustup
cargo
rustc
nodejs_22
] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
libiconv # for test-fuzz-macro on macOS x86_64
];
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 update
rustup default stable
rustup target add wasm32-unknown-unknown
'';
};
}
);
}