@@ -3,49 +3,6 @@ compiler-nix-name: cardano-haskell-packages:
3
3
{ lib , config , pkgs , ... } :
4
4
let
5
5
pkgs' = pkgs ;
6
- # https://github.com/input-output-hk/haskell.nix/issues/1177
7
- nonReinstallablePkgs = [
8
- "array"
9
- "base"
10
- "binary"
11
- "bytestring"
12
- "Cabal"
13
- "containers"
14
- "deepseq"
15
- "directory"
16
- "exceptions"
17
- "filepath"
18
- "ghc"
19
- "ghc-bignum"
20
- "ghc-boot"
21
- "ghc-boot"
22
- "ghc-boot-th"
23
- "ghc-compact"
24
- "ghc-heap"
25
- # "ghci"
26
- # "haskeline"
27
- "ghcjs-prim"
28
- "ghcjs-th"
29
- "ghc-prim"
30
- "ghc-prim"
31
- "hpc"
32
- "integer-gmp"
33
- "integer-simple"
34
- "mtl"
35
- "parsec"
36
- "pretty"
37
- "process"
38
- "rts"
39
- "stm"
40
- "template-haskell"
41
- "terminfo"
42
- "text"
43
- "time"
44
- "transformers"
45
- "unix"
46
- "Win32"
47
- "xhtml"
48
- ] ;
49
6
brokenLibsModule =
50
7
let
51
8
responseFile = builtins . toFile "response-file" ''
66
23
] ;
67
24
in
68
25
{
69
- _file = "lambda-buffers/extras /haskell.nix/plutus.nix:brokenLibsModule" ;
26
+ _file = "flake-lang.nix/flake-lang /haskell.nix/plutus.nix:brokenLibsModule" ;
70
27
packages = builtins . listToAttrs ( builtins . map
71
28
( name : {
72
29
inherit name ;
73
- value . components . library . setupHaddockFlags = [ "--haddock-options=@${ responseFile } " ] ;
74
- value . components . library . ghcOptions = [ "-XFlexibleContexts" "-Wwarn" "-fplugin-opt=PlutusTx.Plugin:defer-errors" ] ;
75
- value . components . library . extraSrcFiles = [ responseFile ] ;
30
+ value . components . library = {
31
+ setupHaddockFlags = [ "--haddock-options=@${ responseFile } " ] ;
32
+ ghcOptions = [ "-XFlexibleContexts" "-Wwarn" "-fplugin-opt=PlutusTx.Plugin:defer-errors" ] ;
33
+ extraSrcFiles = [ responseFile ] ;
34
+ } ;
76
35
} )
77
36
l ) ;
78
37
} ;
79
38
module = { pkgs , ... } : {
80
- _file = "lambda-buffers/extras /haskell.nix/plutus.nix:module" ;
39
+ _file = "flake-lang.nix/flake-lang /haskell.nix/plutus.nix:module" ;
81
40
# FIXME: contentAddressed = true;
82
- inherit nonReinstallablePkgs ; # Needed for a lot of different things
41
+ reinstallableLibGhc = false ; # See https://github.com/input-output-hk/haskell.nix/issues/1939
83
42
packages = {
84
- cardano-crypto-class . components . library . pkgconfig = pkgs . lib . mkForce [ [ pkgs . libsodium-vrf pkgs . secp256k1 ] ] ;
43
+ cardano-crypto-class . components . library . pkgconfig = pkgs . lib . mkForce [ [ pkgs . libsodium-vrf pkgs . secp256k1 pkgs . libblst ] ] ;
85
44
cardano-crypto-praos . components . library . pkgconfig = pkgs . lib . mkForce [ [ pkgs . libsodium-vrf ] ] ;
86
45
} ;
87
46
} ;
88
47
in
89
48
{
90
- _file = "lambda-buffers/extras /haskell.nix/plutus.nix" ;
49
+ _file = "flake-lang.nix/flake-lang /haskell.nix/plutus.nix" ;
91
50
config = {
92
- cabalProjectLocal = ''
93
- repository cardano-haskell-packages
94
- url: https://input-output-hk.github.io/cardano-haskell-packages
95
- secure: True
96
- root-keys:
97
- key-threshold: 0
98
-
99
- allow-newer:
100
- *:base,
101
- *:containers,
102
- *:directory,
103
- *:time,
104
- *:bytestring,
105
- *:aeson,
106
- *:protolude,
107
- *:template-haskell,
108
- *:ghc-prim,
109
- *:ghc,
110
- *:cryptonite,
111
- *:formatting,
112
- monoidal-containers:aeson,
113
- size-based:template-haskell,
114
- snap-server:attoparsec,
115
- -- tasty-hedgehog:hedgehog,
116
- *:hashable,
117
- *:text
118
-
119
- constraints:
120
- text >= 2
121
- , aeson >= 2
122
- , dependent-sum >= 0.7
123
- , protolude >= 0.3.2
124
- , nothunks >= 0.1.3
125
-
126
- package nothunks
127
- flags: +vector +bytestring +text
128
- '' ;
51
+ cabalProjectLocal = builtins . readFile ./cabal.project.local ;
129
52
inherit compiler-nix-name ;
130
53
modules = [ module brokenLibsModule ] ;
131
54
inputMap . "https://input-output-hk.github.io/cardano-haskell-packages" = "${ cardano-haskell-packages } " ;
0 commit comments