From 96378f63b86ec416bc3afe7c2ad282854fa3bf2a Mon Sep 17 00:00:00 2001 From: Alexandre Esteves Date: Wed, 18 Mar 2020 00:40:49 +0000 Subject: [PATCH] Add chainweb-api thunk --- dep/chainweb-api/default.nix | 7 +++++++ dep/chainweb-api/github.json | 7 +++++++ kpkgs.cabal | 1 + overrides.nix | 2 ++ 4 files changed, 17 insertions(+) create mode 100644 dep/chainweb-api/default.nix create mode 100644 dep/chainweb-api/github.json diff --git a/dep/chainweb-api/default.nix b/dep/chainweb-api/default.nix new file mode 100644 index 0000000000..7a0477867b --- /dev/null +++ b/dep/chainweb-api/default.nix @@ -0,0 +1,7 @@ +# DO NOT HAND-EDIT THIS FILE +import ((import {}).fetchFromGitHub ( + let json = builtins.fromJSON (builtins.readFile ./github.json); + in { inherit (json) owner repo rev sha256; + private = json.private or false; + } +)) diff --git a/dep/chainweb-api/github.json b/dep/chainweb-api/github.json new file mode 100644 index 0000000000..7124a1866a --- /dev/null +++ b/dep/chainweb-api/github.json @@ -0,0 +1,7 @@ +{ + "owner": "kadena-io", + "repo": "chainweb-api", + "branch": "master", + "rev": "9cf233e6fbee9750c3a918fce403970922e91461", + "sha256": "0pwjbc42qxrpl6b3zxvjzdyd0z0w8dkpjxjmc3wqw0dgbi62aajs" +} diff --git a/kpkgs.cabal b/kpkgs.cabal index 624500f0ab..5e09772249 100644 --- a/kpkgs.cabal +++ b/kpkgs.cabal @@ -6,6 +6,7 @@ build-type: Simple library build-depends: base + , chainweb-api , kadena-signing-api , pact diff --git a/overrides.nix b/overrides.nix index 52ef6b2e98..53974aa1af 100644 --- a/overrides.nix +++ b/overrides.nix @@ -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; @@ -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) {};