-
Notifications
You must be signed in to change notification settings - Fork 3
/
flake.nix
32 lines (29 loc) · 950 Bytes
/
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
{
inputs = {
versions.url = "github:holochain/holochain?dir=versions/0_2";
holonix.url = "github:holochain/holochain";
holonix.inputs.versions.follows = "versions";
nixpkgs.follows = "holonix/nixpkgs";
};
outputs = inputs@{ holonix, ... }:
holonix.inputs.flake-parts.lib.mkFlake { inherit inputs; } {
# provide a dev shell for all systems that the holonix flake supports
systems = builtins.attrNames holonix.devShells;
perSystem = { config, system, pkgs, ... }:
{
devShells.default = pkgs.mkShell {
inputsFrom = [ holonix.devShells.${system}.holonix ];
packages = with pkgs; [
# add further packages from nixpkgs
cargo-watch
cargo-nextest
nodejs
];
shellHook = ''
unset CARGO_TARGET_DIR
unset CARGO_HOME
'';
};
};
};
}