Skip to content

Commit

Permalink
Add fix for mingw64 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
palas committed Sep 13, 2024
1 parent ed9ca3b commit 0b69b1b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,10 @@ test-suite unit
default-extensions:
NoImplicitPrelude
ghc-options: -Wall -Wcompat -fwarn-redundant-constraints -threaded -rtsopts -with-rtsopts=-N
build-tools:
cardano-address
build-tool-depends:
cardano-addresses-cli:cardano-address
, hspec-discover:hspec-discover
hspec-discover:hspec-discover
build-depends:
QuickCheck >=2.14.2
, aeson >= 2.0
Expand Down
15 changes: 15 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,21 @@
# package customizations as needed. Where cabal.project is not
# specific enough, or doesn't allow setting these.
modules = [
({ config, ... }: {
# This works around an issue with `cardano-addresses-cli.cabal`
# Haskell.nix does not like `build-tool: cardano-address` as it looks in the
# cardano-address package instead of the `cardano-addresses-cli`.
# For some reason `cabal configure` fails if it is changed to:
# `build-tool-depends: cardano-address-cli:cardano-address
# Explicitly overriding the `build-tools` allows `build-tool: cardano-address`
# for now. A better fix would be to work out why cabal fails when
# `build-tool-depends` is used.
packages.cardano-addresses-cli.components.tests.unit.build-tools = nixpkgs.lib.mkForce [
config.hsPkgs.buildPackages.hspec-discover.components.exes.hspec-discover
config.hsPkgs.cardano-addresses-cli.components.exes.cardano-address
];
})

({pkgs, ...}: {
# Packages we wish to ignore version bounds of.
# This is similar to jailbreakCabal, however it
Expand Down

0 comments on commit 0b69b1b

Please sign in to comment.