-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.nix
103 lines (80 loc) · 2.48 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
103
{
# 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 = "v0.0.74";
# 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 = "05kx2bla5h7x70p34s225kh6qqwlwjysif89plhmn0szg3d3l80k";
# 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 = "e540606583b1f91ecbaeca4a705a15ecc3d59e6c";
# 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 = "_._._";
};
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 = "holochain";
# repository name on github that release are deployed to
repo = "holonix";
# canonical local upstream name as per `git remote -v`
upstream = "origin";
};
};
}