-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
75 lines (66 loc) · 2.69 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
description = "Template for Holochain app development";
inputs = {
holonix.url = "github:holochain/holonix/main-0.4";
nixpkgs.follows = "holonix/nixpkgs";
flake-parts.follows = "holonix/flake-parts";
tnesh-stack.url = "github:darksoil-studio/tnesh-stack/main-0.4";
p2p-shipyard.url = "github:darksoil-studio/p2p-shipyard/main-0.4";
playground.url = "github:darksoil-studio/holochain-playground/main-0.4";
file-storage.follows = "messenger-zome/file-storage";
linked-devices-zome.follows = "messenger-zome/linked-devices-zome";
profiles-zome.follows = "messenger-zome/profiles-zome";
messenger-zome.url = "github:darksoil-studio/messenger-zome/utils";
aons.url = "github:darksoil-studio/always-online-nodes/main";
nixos-generators.url = "github:nix-community/nixos-generators";
};
nixConfig = {
extra-substituters = [
"https://holochain-ci.cachix.org"
"https://darksoil-studio.cachix.org"
];
extra-trusted-public-keys = [
"holochain-ci.cachix.org-1:5IUSkZc0aoRS53rfkvH9Kid40NpyjwCMCzwRTXy+QN8="
"darksoil-studio.cachix.org-1:UEi+aujy44s41XL/pscLw37KEVpTEIn8N/kn7jO8rkc="
];
};
outputs = inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ ./happ.nix ./tauri-app.nix ./aon/raspberry-pi.nix ];
systems = builtins.attrNames inputs.holonix.devShells;
perSystem = { inputs', config, pkgs, system, ... }: {
devShells.pnpm = pkgs.mkShell {
inputsFrom = [ inputs'.tnesh-stack.devShells.synchronized-pnpm ];
};
devShells.default = pkgs.mkShell {
inputsFrom = [
inputs'.p2p-shipyard.devShells.holochainTauriDev
inputs'.tnesh-stack.devShells.synchronized-pnpm
inputs'.holonix.devShells.default
];
packages = [
(inputs'.holonix.packages.holochain.override {
cargoExtraArgs = " --features unstable-functions";
})
inputs'.p2p-shipyard.packages.hc-pilot
inputs'.tnesh-stack.packages.hc-scaffold-happ
inputs'.playground.packages.hc-playground
];
};
devShells.androidDev = pkgs.mkShell {
inputsFrom = [
inputs'.p2p-shipyard.devShells.holochainTauriAndroidDev
inputs'.tnesh-stack.devShells.synchronized-pnpm
inputs'.holonix.devShells.default
];
packages = [
(inputs'.holonix.packages.holochain.override {
cargoExtraArgs = " --features unstable-functions";
})
inputs'.tnesh-stack.packages.hc-scaffold-happ
inputs'.playground.packages.hc-playground
];
};
};
};
}