Skip to content

Commit 4bcf8ef

Browse files
committed
Improve dependencies
1 parent 703a467 commit 4bcf8ef

2 files changed

Lines changed: 173 additions & 8 deletions

File tree

cabal.project

Lines changed: 167 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ repository cardano-haskell-packages
1212
index-state:
1313
, hackage.haskell.org 2024-10-10T00:52:24Z
1414
, cardano-haskell-packages 2024-11-26T16:00:26Z
15+
active-repositories:
16+
, :rest
17+
, cardano-haskell-packages:override
1518

1619
packages:
1720
cardano-db
@@ -73,12 +76,27 @@ allow-newer:
7376
-- quickcheck-state-machine that does not compile with ghc-9.10 so we allow a never version
7477
-- that builds with ghc-9.10 (and earlier).
7578
, ouroboros-consensus:quickcheck-state-machine
79+
-- This is a workaround for a revision change on Hackage that increases the upper bound on
80+
-- https://hackage.haskell.org/package/persistent-postgresql-2.13.6.2/persistent-postgresql.cabal
81+
-- Since we're using srp now, we don't have access to the revision
82+
, persistent-postgresql:postgresql-libpq
7683

7784
constraints:
7885
-- STM 2.5.2 is broken: https://github.com/haskell/stm/issues/76
7986
, stm >= 2.5.3.1
8087
-- Earlier versions do not compile with ghc-9.10.
8188
, quickcheck-state-machine ^>= 0.10
89+
, typed-protocols == 0.1.1.0
90+
, hashable == 1.4.7.0
91+
, megaparsec == 9.2.1
92+
, postgresql-libpq == 0.11.0.0
93+
, bytestring == 0.10.12.0
94+
, directory == 1.3.6.0
95+
, process == 1.6.13.2
96+
, time == 1.9.3
97+
, unix == 2.7.2.2
98+
, unliftio-core == 0.2.1.0
99+
, async-timer == 0.1.4.1
82100

83101
-- ---------------------------------------------------------
84102

@@ -87,14 +105,162 @@ constraints:
87105
-- --------------------------- 8< --------------------------
88106
-- Please do not put any `source-repository-package` clause above this line.
89107

108+
-- Pinning 0.6 given by cabal freeze of 13.6.0.7:
109+
-- any.flat ==0.6
110+
-- Without it building fails with:
111+
-- > rejecting: flat-0.4.4.0.0.0.0.2 (conflict: plutus-tx => flat^>=0.6)
112+
source-repository-package
113+
type: git
114+
location: https://github.com/Quid2/flat
115+
tag: 3014e2dde892635c4f46037ba929ec514e0f130f
116+
--sha256: sha256-o6xW+CfrGfbZPBT4Bt1osZ+8vscPGd/mkqrA2esV/BY=
117+
118+
-- Pinning 1.5 given by cabal freeze of 13.6.0.7:
119+
-- any.io-classes ==1.5.0.0,
120+
-- Without it building fails with:
121+
-- > rejecting: io-classes-0.6.0.0 (conflict: typed-protocols =>
122+
-- > io-classes>=1.0 && <1.6)
123+
source-repository-package
124+
type: git
125+
location: https://github.com/input-output-hk/io-sim
126+
tag: a22dced7d012d10227ab0fe370889665c064caf9
127+
--sha256: sha256-U8DERJj4t1h8kVwv9NovfKuxfTgb1E15q2EAhAT6Zes=
128+
subdir:
129+
io-classes
130+
io-classes-mtl
131+
io-sim
132+
si-timers
133+
strict-mvar
134+
strict-stm
135+
136+
-- Pinning 1.5 given by cabal freeze of 13.6.0.7:
137+
-- any.hedgehog ==1.5,
138+
-- Without it building fails with:
139+
-- > rejecting: hedgehog-1.2.0.0.0.0.1 (conflict: tasty-hedgehog =>
140+
-- > hedgehog>=1.4 && <1.6)
141+
source-repository-package
142+
type: git
143+
location: https://github.com/hedgehogqa/haskell-hedgehog
144+
tag: 4c5424db30eee67423ddd80745d03e487a223ade
145+
--sha256: sha256-l8pr/peym3VvlQQaYRpSSTD+i5xvEHwqf40atyk40rc=
146+
subdir:
147+
hedgehog
148+
149+
-- Pinning 0.18.1.0 given by cabal freeze of 13.6.0.7:
150+
-- any.optparse-applicative ==0.18.1.0,
151+
-- Without it building fails with:
152+
-- > rejecting: optparse-applicative-0.16.2.1 (conflict: criterion =>
153+
-- > optparse-applicative>=0.18 && <0.19)
154+
source-repository-package
155+
type: git
156+
location: https://github.com/pcapriotti/optparse-applicative
157+
tag: 270a626f7a7225cdce9b025b427eb0c4378c39c7
158+
--sha256: sha256-64KLKHpIyEg+jLfpj2PI0iFIS/e67IRZKAwHSZSwVYI=
159+
160+
-- Pinning fs-sim 0.3.0.0 given by cabal freeze of 13.6.0.7.
161+
-- CHaPs only has fs-sim-0.2.x but ouroboros-consensus-diffusion => fs-sim ^>=0.3
162+
source-repository-package
163+
type: git
164+
location: https://github.com/input-output-hk/fs-sim
165+
tag: 82feefcc58101dbe183b9776da1b3bf992bcc2df
166+
--sha256: sha256-5d+IrpPcCh4poWZAxzdTccG04faqVJ3X7/gh72ur0E0=
167+
subdir:
168+
fs-sim
169+
fs-api
170+
171+
-- Pinning persistent 2.14.6.2 (equivalent to hackage 2.14.6.3 minus a
172+
-- template-haskell bound bump we don't need).
173+
-- CHaPs has persistent-2.14.5.0.0.0.0.0.1 which doesn't compile with aeson >=2.2
174+
-- (missing attoparsec-aeson dependency).
175+
source-repository-package
176+
type: git
177+
location: https://github.com/yesodweb/persistent
178+
tag: 2f1adc0cc396425a7e6b3565b97709f531016981
179+
--sha256: sha256-iLUudtPQf4/PVSwNNn3nxsm7nD4//BdKfo2SONmLzyk=
180+
subdir:
181+
persistent
182+
persistent-postgresql
183+
184+
-- Pinning persistent-postgresql 2.13.6.2 given by cabal freeze of 13.6.0.7.
185+
-- CHaPs has persistent-postgresql-2.13.5.2.0.0.0.0.1 which constrains
186+
-- postgresql-libpq <0.10, conflicting with postgresql-libpq-0.11.0.0.
187+
-- Commented out: two srps from same repo cause shallow clone reference error in CI.
188+
-- Both persistent and persistent-postgresql exist at the persistent-2.14.6.2 tag.
189+
-- source-repository-package
190+
-- type: git
191+
-- location: https://github.com/yesodweb/persistent
192+
-- tag: 0bdc0d2dda11abb29f213fb785e8d33d0036bbc3
193+
-- --sha256: sha256-5b4rdVS401H9DLbny65c8gJpzHfq28XSftGIt5xoshQ=
194+
-- subdir:
195+
-- persistent-postgresql
196+
197+
-- Pinning servant-server 0.20.2 given by cabal freeze of 13.6.0.7.
198+
-- CHaPs has servant-server-0.19.2.0.0.0.0.1 which constrains constraints <0.14,
199+
-- conflicting with sop-extras => constraints-0.14.2.
200+
source-repository-package
201+
type: git
202+
location: https://github.com/haskell-servant/servant
203+
tag: 6014370a99b4a8bb85b7a91895b6186a727b086a
204+
--sha256: sha256-OW5R6RYRZ3i+xSKUILPDPNjt+yB8YJKlrIQ5TW3N3ho=
205+
subdir:
206+
servant
207+
servant-server
208+
209+
-- CHaPs has vector-algorithms-0.9.0.1.0.0.0.0.1 which constrains primitive <0.9,
210+
-- conflicting with primitive-0.9.0.0. Using 0.9.1.0 which supports primitive <0.10.
211+
source-repository-package
212+
type: git
213+
location: https://github.com/erikd/vector-algorithms
214+
tag: 57e00a866815d0b8317f4cac6f2936408cf569ff
215+
--sha256: sha256-058WWelwaoiKgnOaI64iWOS1XhOqOYdbCK5v5cjjMFk=
216+
217+
-- Pinning hackage versions that CHaPs overrides with older/incompatible ones.
218+
source-repository-package
219+
type: git
220+
location: https://github.com/haskell-foundation/foundation
221+
tag: 6d2b86c1a0393543a1812115c9b5c92086f7c855
222+
--sha256: sha256-263OLjFdYA5bYGCcLjAql5au/gEf7sEazug9Dx2oYe4=
223+
subdir:
224+
foundation
225+
basement
226+
227+
source-repository-package
228+
type: git
229+
location: https://github.com/haskell-streaming/streaming
230+
tag: 804f2ec54fea144faefa691ea3a622cd0d714d98
231+
--sha256: sha256-4IYTasNUgN/W4nbS5eNUo9jllkGuG72t/FttQeVdYCs=
232+
233+
source-repository-package
234+
type: git
235+
location: https://github.com/input-output-hk/bech32
236+
tag: 5a42857dfe454bb27a899f891cac8415d66d0292
237+
--sha256: sha256-U9h6L1OIl8KQCOZKbLaH7ykElhijmb5LKBMCHXGPscU=
238+
subdir:
239+
bech32
240+
241+
source-repository-package
242+
type: git
243+
location: https://github.com/input-output-hk/hedgehog-extras
244+
tag: 2a7d307f52da34ca55e2b20cc6957dd175741574
245+
--sha256: sha256-2PlXYM/MgGov+ln/vghtbqWmJpxQG3mUh6HiDhBExMk=
246+
--
247+
-- unliftio-core srp doesn't work (package.yaml only, no .cabal file).
248+
-- Not in CHaPs so :override doesn't affect it — version change is a ripple effect.
249+
-- source-repository-package
250+
-- type: git
251+
-- location: https://github.com/fpco/unliftio
252+
-- tag: b7ca684dc7e18d8a561f801cd4294b375897dd77
253+
-- --sha256: sha256-1p1TkpJ3dJb998Y5io8wZ07IZ4EGsFnT6BO5H+sEGcI=
254+
-- subdir:
255+
-- unliftio-core
256+
90257
source-repository-package
91258
type: git
92259
location: https://github.com/IntersectMBO/cardano-node
93260
tag: 36871ba0cd3e86a5dbcfd6878cdb7168bb4e56a1
94261
--sha256: sha256-v0q8qHdI6LKc8mP43QZt3UGdTNDQXE0aF6QapvZsTvU=
95262
subdir:
96263
cardano-node
97-
cardano-submit-api
98264
trace-dispatcher
99265
trace-forward
100266
trace-resources

flake.nix

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
let
3535
supportedSystems = [
3636
"x86_64-linux"
37-
"x86_64-darwin"
38-
"aarch64-darwin"
3937
];
4038
in
4139
inputs.utils.lib.eachSystem supportedSystems (system:
@@ -162,11 +160,12 @@
162160
else lib.mkDefault "ghc96";
163161
flake.variants =
164162
let
165-
compilers =
166-
if (system == "x86_64-linux") then
167-
["ghc96" "ghc98" "ghc910"]
168-
else
169-
["ghc98"];
163+
compilers = [];
164+
# compilers =
165+
# if (system == "x86_64-linux") then
166+
# ["ghc96" "ghc98" "ghc910"]
167+
# else
168+
# ["ghc98"];
170169
in
171170
lib.genAttrs compilers (c: { compiler-nix-name = c; });
172171

0 commit comments

Comments
 (0)