Skip to content

Commit b26104c

Browse files
committed
Wasm
1 parent ed1b363 commit b26104c

9 files changed

Lines changed: 658 additions & 1 deletion

cabal-wasm-ledger-only.project

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
active-repositories: hackage.haskell.org, cardano-haskell-packages
2+
3+
-- Custom repository for cardano haskell packages, see CONTRIBUTING for more
4+
repository cardano-haskell-packages
5+
url: https://chap.intersectmbo.org/
6+
secure: True
7+
root-keys:
8+
3e0cce471cf09815f930210f7827266fd09045445d65923e6d0238a6cd15126f
9+
443abb7fb497a134c343faf52f0b659bd7999bc06b7f63fa76dc99d631f9bea1
10+
a86a1f6ce86c449c46666bda44268677abf29b5b2d2eb5ec7af903ec2f117a82
11+
bcec67e8e99cabfa7764d75ad9b158d72bfacf70ca1d0ec8bc6b4406d1bf8413
12+
c00aae8461a256275598500ea0e187588c35a5d5d7454fb57eac18d9edb86a56
13+
d4a35cd3121aa00d18544bb0ac01c3e1691d618f462c46129271bccf39f7e8ee
14+
15+
-- See CONTRIBUTING for information about these, including some Nix commands
16+
-- you need to run if you change them
17+
index-state:
18+
, hackage.haskell.org 2025-04-08T10:52:25Z
19+
, cardano-haskell-packages 2025-04-22T08:40:01Z
20+
21+
packages:
22+
cardano-api-wasm-ledger-only
23+
24+
extra-packages: Cabal, process
25+
26+
package cardano-crypto-praos
27+
flags: -external-libsodium-vrf
28+
29+
30+
program-options
31+
ghc-options: -Werror
32+
33+
package crypton
34+
-- Using RDRAND instead of /dev/urandom as an entropy source for key
35+
-- generation is dubious. Set the flag so we use /dev/urandom by default.
36+
flags: -support_rdrand
37+
38+
-- disable c++ nonsense on bitvec, to make it compile. The windows linker/loader
39+
-- chokes on c++ dependencies.
40+
package bitvec
41+
flags: -simd
42+
43+
tests: True
44+
test-show-details: direct
45+
46+
-- Always write GHC env files, because they are needed for ghci.
47+
write-ghc-environment-files: always
48+
49+
-- enable parallel builds
50+
jobs: $ncpus
51+
52+
-- IMPORT ANT
53+
-- Do NOT add more source-repository-package stanzas here unless they are strictly
54+
-- temporary! Please read the section in CONTRIBUTING about updating dependencies.
55+
56+
if impl (ghc >= 9.12)
57+
allow-newer:
58+
-- https://github.com/phadej/vec/issues/118
59+
, bin:base
60+
, fin:base
61+
, ral:base
62+
63+
-- https://github.com/well-typed/cborg/pull/339
64+
, cborg:base
65+
, cborg:ghc-prim
66+
, serialise:base
67+
, serialise:ghc-prim
68+
69+
-- https://github.com/haskellari/tree-diff/issues/97
70+
, tree-diff:base
71+
72+
-- https://github.com/kapralVV/Unique/issues/11
73+
, Unique:hashable
74+
75+
-- https://github.com/fizruk/http-api-data/pull/146
76+
, http-api-data:base
77+
78+
79+
with-compiler: wasm32-wasi-ghc
80+
with-hc-pkg: wasm32-wasi-ghc-pkg
81+
82+
83+
84+
85+
86+
-- WASM related
87+
88+
allow-older: cborg
89+
-- TODO: Wait on aniket to release cardano-api. Then use that instead because it drops
90+
-- the cardano-crypto-class dependency that depends on cryptonite
91+
92+
-- 1.45.0.0 Modified with "do-not-build-plutus-exec" flag to avoid building plutus executable
93+
source-repository-package
94+
type: git
95+
location: https://github.com/IntersectMBO/plutus.git
96+
tag: 8c7945735c658c77e55b4f7d5320842c695cfda5
97+
subdir:
98+
plutus-core
99+
plutus-ledger-api
100+
plutus-tx
101+
102+
103+
package plutus-core
104+
flags: +do-not-build-plutus-exec
105+
106+
source-repository-package
107+
type: git
108+
location: https://github.com/amesgen/cborg
109+
tag: c3b5c696f62d04c0d87f55250bfc0016ab94d800
110+
subdir: cborg
111+
112+
113+
source-repository-package
114+
type: git
115+
location: https://github.com/Jimbo4350/foundation.git
116+
tag: b3cb78484fe6f6ce1dfcef59e72ceccc530e86ac
117+
subdir:
118+
basement
119+
foundation
120+
121+
source-repository-package
122+
type: git
123+
location: https://github.com/haskell-wasm/hs-memory.git
124+
tag: a198a76c584dc2cfdcde6b431968de92a5fed65e
125+
126+
allow-newer: time
127+
constraints: time >= 1.14
128+
129+
package digest
130+
flags: -pkg-config
131+
132+
package crypton
133+
ghc-options: -optc-DARGON2_NO_THREADS
134+
135+
package time
136+
ghc-options: -Wno-deriving-typeable

0 commit comments

Comments
 (0)