-
Notifications
You must be signed in to change notification settings - Fork 463
/
plutus-tx.nix
125 lines (125 loc) · 4.64 KB
/
plutus-tx.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
121
122
123
124
125
{ system
, compiler
, flags
, pkgs
, hsPkgs
, pkgconfPkgs
, errorHandler
, config
, ... }:
{
flags = {};
package = {
specVersion = "2.2";
identifier = { name = "plutus-tx"; version = "0.1.0.0"; };
license = "Apache-2.0";
copyright = "";
maintainer = "michael.peyton-jones@iohk.io";
author = "Michael Peyton Jones";
homepage = "";
url = "";
synopsis = "Libraries for Plutus Tx and its prelude";
description = "Libraries for Plutus Tx and its prelude";
buildType = "Simple";
isLocal = true;
detailLevel = "FullDetails";
licenseFiles = [ "LICENSE" "NOTICE" ];
dataDir = ".";
dataFiles = [];
extraSrcFiles = [];
extraTmpFiles = [];
extraDocFiles = [ "README.md" ];
};
components = {
"library" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring"))
(hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
(hsPkgs."template-haskell" or (errorHandler.buildDepError "template-haskell"))
(hsPkgs."th-abstraction" or (errorHandler.buildDepError "th-abstraction"))
(hsPkgs."prettyprinter" or (errorHandler.buildDepError "prettyprinter"))
(hsPkgs."text" or (errorHandler.buildDepError "text"))
(hsPkgs."mtl" or (errorHandler.buildDepError "mtl"))
(hsPkgs."containers" or (errorHandler.buildDepError "containers"))
(hsPkgs."flat" or (errorHandler.buildDepError "flat"))
(hsPkgs."plutus-core" or (errorHandler.buildDepError "plutus-core"))
(hsPkgs."lens" or (errorHandler.buildDepError "lens"))
(hsPkgs."ghc-prim" or (errorHandler.buildDepError "ghc-prim"))
(hsPkgs."aeson" or (errorHandler.buildDepError "aeson"))
(hsPkgs."hashable" or (errorHandler.buildDepError "hashable"))
(hsPkgs."memory" or (errorHandler.buildDepError "memory"))
(hsPkgs."serialise" or (errorHandler.buildDepError "serialise"))
];
buildable = true;
modules = [
"PlutusTx/IsData/Instances"
"PlutusTx/IsData/TH"
"PlutusTx/Lift/THUtils"
"PlutusTx/Lift/Instances"
"PlutusTx"
"PlutusTx/Coverage"
"PlutusTx/TH"
"PlutusTx/Prelude"
"PlutusTx/Applicative"
"PlutusTx/Base"
"PlutusTx/Bool"
"PlutusTx/IsData"
"PlutusTx/IsData/Class"
"PlutusTx/ErrorCodes"
"PlutusTx/Eq"
"PlutusTx/Enum"
"PlutusTx/Either"
"PlutusTx/Foldable"
"PlutusTx/Functor"
"PlutusTx/Lattice"
"PlutusTx/List"
"PlutusTx/Ord"
"PlutusTx/Integer"
"PlutusTx/Maybe"
"PlutusTx/Monoid"
"PlutusTx/Numeric"
"PlutusTx/Ratio"
"PlutusTx/Semigroup"
"PlutusTx/Sqrt"
"PlutusTx/Traversable"
"PlutusTx/AssocMap"
"PlutusTx/Trace"
"PlutusTx/These"
"PlutusTx/Code"
"PlutusTx/Lift"
"PlutusTx/Lift/Class"
"PlutusTx/Builtins"
"PlutusTx/Builtins/Class"
"PlutusTx/Builtins/Internal"
"PlutusTx/Plugin/Utils"
"PlutusTx/Utils"
];
hsSourceDirs = [ "src" ];
};
tests = {
"plutus-tx-test" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring"))
(hsPkgs."plutus-core" or (errorHandler.buildDepError "plutus-core"))
(hsPkgs."plutus-tx" or (errorHandler.buildDepError "plutus-tx"))
(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."serialise" or (errorHandler.buildDepError "serialise"))
(hsPkgs."cborg" or (errorHandler.buildDepError "cborg"))
];
build-tools = [
(hsPkgs.buildPackages.doctest.components.exes.doctest or (pkgs.buildPackages.doctest or (errorHandler.buildToolDepError "doctest:doctest")))
];
buildable = if compiler.isGhcjs && true || system.isWindows
then false
else true;
hsSourceDirs = [ "test" ];
mainPath = [ "Spec.hs" ];
};
};
};
} // rec { src = (pkgs.lib).mkDefault ../plutus-tx; }