Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:holochain/holochain-serializatio…
Browse files Browse the repository at this point in the history
…n into release-0.0.3
  • Loading branch information
thedavidmeister committed Jul 9, 2019
2 parents f0d4d58 + 5513a69 commit 4616e07
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 45 deletions.
43 changes: 40 additions & 3 deletions config.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,53 @@
{

# 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 = "0.0.15";

# 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 = "0pxlfz6pvzxlqjh6dz8lgrgc3k5s62zm7d0gllqmdvfw4qy3ffqy";

# 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 = ./.;
};

};

release = {
# 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 = "0095ae8451d954ca4fef76aac76c4aa40add0dad";
commit = "b759e5ff3beda2e15ad3797073829de7ac1adf1a";

# 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.2";
previous = "0.0.1-alpha2";
current = "0.0.3";
previous = "0.0.2";
};

github = {
Expand Down
50 changes: 8 additions & 42 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,55 +5,19 @@ let

# point this to your local config.nix file for this project
# example.config.nix shows and documents a lot of the options
project-config = import ./config.nix;

config = {

# 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 = "0.0.12";

# 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 = "1hlfd2vr8x0faa8d8zhrnkqadvn6wmvwnl9zl920vb1p08qg24ka";

# 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 = ./.;
};

};
config = import ./config.nix;

# START HOLONIX IMPORT BOILERPLATE
holonix = import (
if ! config.use-github
then config.local.path
if ! config.holonix.use-github
then config.holonix.local.path
else fetchTarball {
url = "https://github.com/${config.github.owner}/${config.github.repo}/tarball/${config.github.ref}";
sha256 = config.github.sha256;
url = "https://github.com/${config.holonix.github.owner}/${config.holonix.github.repo}/tarball/${config.holonix.github.ref}";
sha256 = config.holonix.github.sha256;
}
) { config = project-config; };
) { config = config; };
# END HOLONIX IMPORT BOILERPLATE

# holonix = callPackage ../holonix { config = (import ./config.nix) };
in
with holonix.pkgs;
{
Expand All @@ -62,6 +26,8 @@ with holonix.pkgs;

buildInputs = [ ]
++ holonix.shell.buildInputs

# main test script
++ (holonix.pkgs.callPackage ./test {
pkgs = holonix.pkgs;
}).buildInputs
Expand Down

0 comments on commit 4616e07

Please sign in to comment.