Skip to content

Commit

Permalink
Merge pull request #3 from kadena-io/ae@add-chainweb-api
Browse files Browse the repository at this point in the history
Add chainweb-api thunk
  • Loading branch information
mightybyte authored Mar 18, 2020
2 parents 53de3e9 + 96378f6 commit 9ebb9cb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dep/chainweb-api/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# DO NOT HAND-EDIT THIS FILE
import ((import <nixpkgs> {}).fetchFromGitHub (
let json = builtins.fromJSON (builtins.readFile ./github.json);
in { inherit (json) owner repo rev sha256;
private = json.private or false;
}
))
7 changes: 7 additions & 0 deletions dep/chainweb-api/github.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"owner": "kadena-io",
"repo": "chainweb-api",
"branch": "master",
"rev": "9cf233e6fbee9750c3a918fce403970922e91461",
"sha256": "0pwjbc42qxrpl6b3zxvjzdyd0z0w8dkpjxjmc3wqw0dgbi62aajs"
}
1 change: 1 addition & 0 deletions kpkgs.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ build-type: Simple

library
build-depends: base
, chainweb-api
, kadena-signing-api
, pact

Expand Down
2 changes: 2 additions & 0 deletions overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ let
callHackageDirect = args: self.callHackageDirect args {};

repos = {
chainweb-api = hackGet ./dep/chainweb-api;
chainweb-miner = hackGet ./dep/chainweb-miner;
chainweb-node = hackGet ./dep/chainweb-node;
pact = hackGet ./dep/pact;
Expand Down Expand Up @@ -419,6 +420,7 @@ in with pkgs.haskell.lib; {

## kadena packages ##
chainweb = dontCheck (self.callCabal2nix "chainweb" repos.chainweb-node {});
chainweb-api = self.callCabal2nix "chainweb-miner" repos.chainweb-api {};
chainweb-miner = self.callCabal2nix "chainweb-miner" repos.chainweb-miner {};
pact = addBuildDepend (self.callCabal2nix "pact" repos.pact {}) pkgs.z3;
kadena-signing-api = self.callCabal2nix "kadena-signing-api" (repos.signing-api + /kadena-signing-api) {};
Expand Down

0 comments on commit 9ebb9cb

Please sign in to comment.