-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathflake.nix
31 lines (27 loc) · 914 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
{
description = "Nix shell for Holochain app development";
inputs = {
holonix.url = "github:holochain/holonix?ref=main";
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 = { inputs', pkgs, ... }:
{
devShells.default = pkgs.mkShell {
packages = [
inputs'.holonix.packages.holochain
inputs'.holonix.packages.lair-keystore
inputs'.holonix.packages.rust
# add further packages from nixpkgs
pkgs.nodejs
];
shellHook = ''
export PS1='\[\033[1;34m\][holonix:\w]\$\[\033[0m\] '
'';
};
};
};
}