Skip to content

Commit

Permalink
Workarounds for haskell.nix bugs re pre-installed packages
Browse files Browse the repository at this point in the history
Co-authored-by: Hamish Mackenzie <[email protected]>
Co-authored-by: Alexander Esgen <[email protected]>
  • Loading branch information
3 people committed Jun 19, 2024
1 parent f58ddee commit 6eb84a8
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 26 deletions.
7 changes: 7 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,10 @@ import: ./asserts.cabal
if(os(windows))
constraints:
bitvec -simd

-- Workaround for a haskell.nix bug around pre-installed libraries. Might be
-- fixed by https://github.com/input-output-hk/haskell.nix/pull/2218.
extra-packages: Cabal
if os(windows)
constraints: time ^>=1.14
allow-newer: *:time
45 changes: 22 additions & 23 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
nixpkgs.follows = "haskellNix/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
haskellNix = {
# temporarily use the static-nix-tools branch until it's merged to work
# aroundt he Cabal build issues.
url = "github:input-output-hk/haskell.nix/static-nix-tools";
url = "github:input-output-hk/haskell.nix";
inputs.hackage.follows = "hackageNix";
};
hackageNix = {
Expand Down

0 comments on commit 6eb84a8

Please sign in to comment.