This repository has been archived by the owner on Apr 6, 2020. It is now read-only.
/
cardano-tx-submit.nix
120 lines (114 loc) · 5.76 KB
/
cardano-tx-submit.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
let
buildDepError = pkg:
builtins.throw ''
The Haskell package set does not contain the package: ${pkg} (build dependency).
If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix.
'';
sysDepError = pkg:
builtins.throw ''
The Nixpkgs package set does not contain the package: ${pkg} (system dependency).
You may need to augment the system package mapping in haskell.nix so that it can be found.
'';
pkgConfDepError = pkg:
builtins.throw ''
The pkg-conf packages does not contain the package: ${pkg} (pkg-conf dependency).
You may need to augment the pkg-conf package mapping in haskell.nix so that it can be found.
'';
exeDepError = pkg:
builtins.throw ''
The local executable components do not include the component: ${pkg} (executable dependency).
'';
legacyExeDepError = pkg:
builtins.throw ''
The Haskell package set does not contain the package: ${pkg} (executable dependency).
If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix.
'';
buildToolDepError = pkg:
builtins.throw ''
Neither the Haskell package set or the Nixpkgs package set contain the package: ${pkg} (build tool dependency).
If this is a system dependency:
You may need to augment the system package mapping in haskell.nix so that it can be found.
If this is a Haskell dependency:
If you are using Stackage, make sure that you are using a snapshot that contains the package. Otherwise you may need to update the Hackage snapshot you are using, usually by updating haskell.nix.
'';
in { system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }:
{
flags = {};
package = {
specVersion = "1.10";
identifier = { name = "cardano-tx-submit"; version = "1.2.2"; };
license = "Apache-2.0";
copyright = "(c) 2019 IOHK";
maintainer = "operations@iohk.io";
author = "IOHK Engineering Team";
homepage = "https://github.com/input-output-hk/cardano-explorer";
url = "";
synopsis = "A web server that allows transactions to be POSTed to the cardano chain";
description = "";
buildType = "Simple";
isLocal = true;
};
components = {
"library" = {
depends = [
(hsPkgs."base" or (buildDepError "base"))
(hsPkgs."aeson" or (buildDepError "aeson"))
(hsPkgs."async" or (buildDepError "async"))
(hsPkgs."base16-bytestring" or (buildDepError "base16-bytestring"))
(hsPkgs."bytestring" or (buildDepError "bytestring"))
(hsPkgs."cardano-binary" or (buildDepError "cardano-binary"))
(hsPkgs."cardano-crypto-class" or (buildDepError "cardano-crypto-class"))
(hsPkgs."cardano-crypto-wrapper" or (buildDepError "cardano-crypto-wrapper"))
(hsPkgs."cardano-explorer-db" or (buildDepError "cardano-explorer-db"))
(hsPkgs."cardano-prelude" or (buildDepError "cardano-prelude"))
(hsPkgs."cardano-ledger" or (buildDepError "cardano-ledger"))
(hsPkgs."cardano-shell" or (buildDepError "cardano-shell"))
(hsPkgs."containers" or (buildDepError "containers"))
(hsPkgs."contra-tracer" or (buildDepError "contra-tracer"))
(hsPkgs."cryptonite" or (buildDepError "cryptonite"))
(hsPkgs."deepseq" or (buildDepError "deepseq"))
(hsPkgs."extra" or (buildDepError "extra"))
(hsPkgs."formatting" or (buildDepError "formatting"))
(hsPkgs."generics-sop" or (buildDepError "generics-sop"))
(hsPkgs."hashable" or (buildDepError "hashable"))
(hsPkgs."iohk-monitoring" or (buildDepError "iohk-monitoring"))
(hsPkgs."io-sim-classes" or (buildDepError "io-sim-classes"))
(hsPkgs."memory" or (buildDepError "memory"))
(hsPkgs."monad-logger" or (buildDepError "monad-logger"))
(hsPkgs."mtl" or (buildDepError "mtl"))
(hsPkgs."network" or (buildDepError "network"))
(hsPkgs."ouroboros-consensus" or (buildDepError "ouroboros-consensus"))
(hsPkgs."ouroboros-network" or (buildDepError "ouroboros-network"))
(hsPkgs."prometheus" or (buildDepError "prometheus"))
(hsPkgs."serialise" or (buildDepError "serialise"))
(hsPkgs."servant" or (buildDepError "servant"))
(hsPkgs."servant-server" or (buildDepError "servant-server"))
(hsPkgs."text" or (buildDepError "text"))
(hsPkgs."time" or (buildDepError "time"))
(hsPkgs."transformers" or (buildDepError "transformers"))
(hsPkgs."transformers-except" or (buildDepError "transformers-except"))
(hsPkgs."typed-protocols" or (buildDepError "typed-protocols"))
(hsPkgs."typed-protocols-cbor" or (buildDepError "typed-protocols-cbor"))
(hsPkgs."warp" or (buildDepError "warp"))
(hsPkgs."yaml" or (buildDepError "yaml"))
];
buildable = true;
};
exes = {
"cardano-tx-submit-webapi" = {
depends = [
(hsPkgs."base" or (buildDepError "base"))
(hsPkgs."cardano-tx-submit" or (buildDepError "cardano-tx-submit"))
(hsPkgs."optparse-applicative" or (buildDepError "optparse-applicative"))
];
buildable = true;
};
};
tests = {
"test" = {
depends = [ (hsPkgs."base" or (buildDepError "base")) ];
buildable = true;
};
};
};
} // rec { src = (pkgs.lib).mkDefault ../.././cardano-tx-submit; }