Files
echidna/stack.yaml
Emilio López da5bca781d build: compile hevm with -O2 in the nix and stack release builds
hevm's cabal file leaves optimization at cabal's default -O1. Echidna
itself already builds with -O2 (package.yaml ghc-options), but the hevm
interpreter it spends most of its time in did not. Pass -O2 to hevm in
both binary pipelines: an --enable-optimization=2 configure flag on the
hevm derivation in flake.nix (covers .#echidna, the redistributable and
the static builds) and a per-package ghc-options entry in stack.yaml
(covers the CI stack binaries).
2026-09-09 15:58:45 -03:00

47 lines
1.9 KiB
YAML

resolver: lts-23.24
# matching https://github.com/NixOS/nixpkgs/blob/97eb7ee0da337d385ab015a23e15022c865be75c/pkgs/development/haskell-modules/configuration-hackage2nix/stackage.yaml#L1
packages:
- '.'
# Relax the `tls < 2.2` upper bounds of the tls consumers so they can use tls 2.2.2
# (they all compile fine against it). crypton-connection has no release targeting tls 2.2
# at all (0.4.5 caps < 2.2, 0.4.6 needs >= 2.3). Mirrors the doJailbreaks in flake.nix.
allow-newer: true
allow-newer-deps:
- crypton-connection
- warp-tls
- tls-session-manager
ghc-options:
hevm: -O2
extra-deps:
- git: https://github.com/argotorg/hevm.git
commit: 62c16d10d41d04218a18d09e7494bba2dc564e9c
# Bump tls to >= 2.2.2 for the fix in https://github.com/haskell-tls/hs-tls/pull/515.
# tls 2.2.2 needs the crypton-x509 1.8 line, which migrated from asn1-*/pem/hourglass to
# the crypton-asn1-*/crypton-pem/time-hourglass packages (none of which are in lts-23.24),
# while still building against crypton 1.0.x. Pin the whole set explicitly.
- tls-2.2.2
- crypton-x509-1.8.0
- crypton-x509-store-1.8.0
- crypton-x509-validation-1.8.0
- crypton-asn1-encoding-0.10.0
- crypton-asn1-parse-0.10.0
- crypton-asn1-types-0.4.1
- crypton-pem-0.3.0
- time-hourglass-0.3.0
- hpke-0.0.0
- ech-config-0.0.1
- crypton-connection-0.4.5
- crypton-socks-0.6.2@sha256:19f8f9a8c1973905ec000ea431bb4454a9c437b80f1e5f5f83ff84b964c49885,2017
- smt2-parser-0.1.0.1@sha256:1e1a4565915ed851c13d1e6b8bb5185cf5d454da3b43170825d53e221f753d77,1421
- spawn-0.3@sha256:b91e01d8f2b076841410ae284b32046f91471943dc799c1af77d666c72101f02,1162
- spool-0.1@sha256:77780cbfc2c0be23ff2ea9e474062f3df97fcd9db946ee0b3508280a923b83e2,1461
- strip-ansi-escape-0.1.0.0@sha256:08f2ed93b16086a837ec46eab7ce8d27cf39d47783caaeb818878ea33c2ff75f,1628
- jsonl-0.2.0.0@sha256:35f8a3816f0b93830008709a8e64c0c69b9bc632a92c54b3be3345bfccba4a5c,1465
- vty-windows-0.2.0.3@sha256:0c010b1086a725046a8bb08bb1e6bfdfdb3cfe1c72d6fa77c37306ef9ec774d8,2844