-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.nix
102 lines (80 loc) · 2.51 KB
/
config.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
# extend the shell with buildInputs specific to this project
buildInputs = [ ];
# configure holonix itself
holonix = {
# true = use a github repository as the holonix base (recommended)
# false = use a local copy of holonix (useful for debugging)
use-github = true;
# configure the remote holonix github when use-github = true
github = {
# can be any github ref
# branch, tag, commit, etc.
ref = "74e852693e8821fdb73432eee157a197fb162ccc";
# the sha of what is downloaded from the above ref
# note: even if you change the above ref it will not be redownloaded until
# the sha here changes (the sha is the cache key for downloads)
# note: to get a new sha, get nix to try and download a bad sha
# it will complain and tell you the right sha
sha256 = "08xw3mmwc8ybrz275b1yaq2dhmzjxy6hnqha1snh4v9m9dj453im";
# the github owner of the holonix repo
owner = "holochain";
# the name of the holonix repo
repo = "holonix";
};
# configuration for when use-github = false
local = {
# the path to the local holonix copy
path = ./.;
};
};
# configure the release process
release = {
hook = {
# sanity checks before deploying
# to stop the release
# exit 1
preflight = ''
hn-release-hook-preflight-manual
'';
# bump versions in the repo
version = ''
hn-release-hook-version-readme
'';
# publish artifacts to the world
publish = ''
echo "All finished!!!"
'';
};
# the commit hash that the release process should target
# this will always be behind what ends up being deployed
# the release process needs to add some commits for changelog etc.
commit = "74e852693e8821fdb73432eee157a197fb162ccc";
# the semver for prev and current releases
# the previous version will be scanned/bumped by release scripts
# the current version is what the release scripts bump *to*
version = {
current = "0.0.1";
previous = "0.0.0";
};
github = {
# markdown to inject into github releases
# there is some basic string substitution {{ xxx }}
# - {{ changelog }} will inject the changelog as at the target commit
template = ''
{{ changelog }}
# Installation
Use Holonix to work with this repository.
See:
- https://github.com/holochain/holonix
- https://nixos.org/
'';
# owner of the github repository that release are deployed to
owner = "holo-host";
# repository name on github that release are deployed to
repo = "deepkey";
# canonical local upstream name as per `git remote -v`
upstream = "origin";
};
};
}