This repository has been archived by the owner on May 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.nix
101 lines (79 loc) · 2.46 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
{
# 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.73";
# 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 = "0xqhrs1dqfsa8dbdn54bkp3v5yxakc7vabvczsapd0c50nnal9fq";
# 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 = ''
'';
# 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 = "bceda68ae1091676482cf7d92d9e6d4380c29b63";
# 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 = "JhonatanHern";
# repository name on github that release are deployed to
repo = "holo-wiki-back";
# canonical local upstream name as per `git remote -v`
upstream = "origin";
};
};
}