/
plutus-ledger-api.nix
120 lines (120 loc) · 4.84 KB
/
plutus-ledger-api.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
{ system
, compiler
, flags
, pkgs
, hsPkgs
, pkgconfPkgs
, errorHandler
, config
, ... }:
{
flags = {};
package = {
specVersion = "2.2";
identifier = { name = "plutus-ledger-api"; version = "0.1.0.0"; };
license = "Apache-2.0";
copyright = "";
maintainer = "michael.peyton-jones@iohk.io";
author = "Michael Peyton Jones, Jann Mueller";
homepage = "";
url = "";
synopsis = "Interface to the Plutus ledger for the Cardano ledger.";
description = "Interface to the Plutus scripting support for the Cardano ledger.";
buildType = "Simple";
isLocal = true;
detailLevel = "FullDetails";
licenseFiles = [ "LICENSE" "NOTICE" ];
dataDir = ".";
dataFiles = [];
extraSrcFiles = [];
extraTmpFiles = [];
extraDocFiles = [];
};
components = {
"library" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."aeson" or (errorHandler.buildDepError "aeson"))
(hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring"))
(hsPkgs."cborg" or (errorHandler.buildDepError "cborg"))
(hsPkgs."containers" or (errorHandler.buildDepError "containers"))
(hsPkgs."flat" or (errorHandler.buildDepError "flat"))
(hsPkgs."hashable" or (errorHandler.buildDepError "hashable"))
(hsPkgs."plutus-core" or (errorHandler.buildDepError "plutus-core"))
(hsPkgs."memory" or (errorHandler.buildDepError "memory"))
(hsPkgs."mtl" or (errorHandler.buildDepError "mtl"))
(hsPkgs."plutus-tx" or (errorHandler.buildDepError "plutus-tx"))
(hsPkgs."serialise" or (errorHandler.buildDepError "serialise"))
(hsPkgs."template-haskell" or (errorHandler.buildDepError "template-haskell"))
(hsPkgs."text" or (errorHandler.buildDepError "text"))
(hsPkgs."prettyprinter" or (errorHandler.buildDepError "prettyprinter"))
(hsPkgs."transformers" or (errorHandler.buildDepError "transformers"))
(hsPkgs."base16-bytestring" or (errorHandler.buildDepError "base16-bytestring"))
(hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
(hsPkgs."newtype-generics" or (errorHandler.buildDepError "newtype-generics"))
(hsPkgs."tagged" or (errorHandler.buildDepError "tagged"))
(hsPkgs."lens" or (errorHandler.buildDepError "lens"))
(hsPkgs."scientific" or (errorHandler.buildDepError "scientific"))
];
buildable = true;
modules = [
"Data/Aeson/Extras"
"Data/Either/Extras"
"Prettyprinter/Extras"
"Plutus/V1/Ledger/Address"
"Plutus/V1/Ledger/Ada"
"Plutus/V1/Ledger/Api"
"Plutus/V1/Ledger/Bytes"
"Plutus/V1/Ledger/Contexts"
"Plutus/V1/Ledger/Credential"
"Plutus/V1/Ledger/Crypto"
"Plutus/V1/Ledger/DCert"
"Plutus/V1/Ledger/Examples"
"Plutus/V1/Ledger/Interval"
"Plutus/V1/Ledger/Orphans"
"Plutus/V1/Ledger/Scripts"
"Plutus/V1/Ledger/Slot"
"Plutus/V1/Ledger/Tx"
"Plutus/V1/Ledger/TxId"
"Plutus/V1/Ledger/Time"
"Plutus/V1/Ledger/Value"
"Plutus/V2/Ledger/Api"
"Plutus/V2/Ledger/Contexts"
];
hsSourceDirs = [ "src" ];
};
tests = {
"plutus-ledger-api-test" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."mtl" or (errorHandler.buildDepError "mtl"))
(hsPkgs."aeson" or (errorHandler.buildDepError "aeson"))
(hsPkgs."plutus-core" or (errorHandler.buildDepError "plutus-core"))
(hsPkgs."plutus-ledger-api" or (errorHandler.buildDepError "plutus-ledger-api"))
(hsPkgs."hedgehog" or (errorHandler.buildDepError "hedgehog"))
(hsPkgs."tasty" or (errorHandler.buildDepError "tasty"))
(hsPkgs."tasty-hedgehog" or (errorHandler.buildDepError "tasty-hedgehog"))
(hsPkgs."tasty-hunit" or (errorHandler.buildDepError "tasty-hunit"))
(hsPkgs."tasty-quickcheck" or (errorHandler.buildDepError "tasty-quickcheck"))
(hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring"))
(hsPkgs."serialise" or (errorHandler.buildDepError "serialise"))
];
buildable = true;
modules = [ "Spec/Interval" "Spec/Time" "Spec/Eval" ];
hsSourceDirs = [ "test" ];
mainPath = [ "Spec.hs" ];
};
};
};
} // {
src = (pkgs.lib).mkDefault (pkgs.fetchgit {
url = "14";
rev = "minimal";
sha256 = "";
}) // {
url = "14";
rev = "minimal";
sha256 = "";
};
postUnpack = "sourceRoot+=/plutus-ledger-api; echo source root reset to \$sourceRoot";
}