forked from holochain/holochain-client-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
27 lines (25 loc) · 883 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
{
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', config, system, pkgs, ... }:
{
devShells.default = pkgs.mkShell {
packages = [
inputs'.holonix.packages.holochain
inputs'.holonix.packages.lair-keystore
inputs'.holonix.packages.rust
pkgs.go
] ++ (pkgs.lib.optionals pkgs.stdenv.isDarwin [
# needed to build Holochain on macos
pkgs.darwin.apple_sdk.frameworks.SystemConfiguration
]);
};
};
};
}