-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
75 lines (67 loc) · 2.74 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 = {
nixpkgs.follows = "holonix/nixpkgs";
holonix.url = "github:holochain/holonix/main-0.3";
tnesh-stack.url = "github:darksoil-studio/tnesh-stack/main-0.3";
playground.url = "github:darksoil-studio/holochain-playground/main-0.3";
p2p-shipyard.url = "github:darksoil-studio/p2p-shipyard/main-0.3";
linked-devices-zome.url =
"github:darksoil-studio/linked-devices-zome/main-0.3";
profiles-zome.url = "github:darksoil-studio/profiles-zome/main-0.3";
};
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.holonix.inputs.flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
./zomes/integrity/notifications/zome.nix
./zomes/coordinator/notifications/zome.nix
./zomes/integrity/example/zome.nix
./zomes/coordinator/example/zome.nix
# Just for testing purposes
./workdir/dna.nix
./workdir/happ.nix
inputs.tnesh-stack.outputs.flakeModules.builders
];
systems = builtins.attrNames inputs.holonix.devShells;
perSystem = { inputs', config, pkgs, system, ... }: {
devShells.default = pkgs.mkShell {
inputsFrom = [
inputs'.tnesh-stack.devShells.synchronized-pnpm
inputs'.holonix.devShells.default
];
packages = [
inputs'.tnesh-stack.packages.hc-scaffold-zome
inputs'.playground.packages.hc-playground
inputs'.p2p-shipyard.packages.hc-pilot
];
};
packages.scaffold = pkgs.symlinkJoin {
name = "scaffold-remote-zome";
paths = [ inputs'.tnesh-stack.packages.scaffold-remote-zome ];
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/scaffold-remote-zome \
--add-flags "notifications-zome \
--integrity-zome-name notifications_integrity \
--coordinator-zome-name notifications \
--remote-zome-git-url github:darksoil-studio/notifications-zome \
--remote-npm-package-name @darksoil-studio/notifications-zome \
--remote-npm-package-path ui \
--remote-zome-git-branch main-0.3 \
--context-element notifications-context \
--context-element-import @darksoil-studio/notifications-zome/dist/elements/notifications-context.js"
'';
};
};
};
}