Skip to content

Commit

Permalink
Update rules_haskell
Browse files Browse the repository at this point in the history
- rules_haskell now handles the global package db within Bazel
    tweag/rules_haskell#859
- We no longer use the Nix provided c2hs. So, we drop it.
- Rename `ghcWithC2hs` to `ghcStatic` to clarify that that's where the
    static linking patches are applied.
- Extend package-db patches to align Nix store paths with the new $out.
    This works around a restriction in current rules_haskell, where
    the paths in the package config files must have the same prefix as
    the path to the package config files themselves.
- Don't exclude haskell libraries from extra-libraries entries.

Test rules_haskell pkgdb-to-bzl

fix-for-da

Drop c2hs

Fix GHC package-db patch
  • Loading branch information
aherrmann committed May 14, 2019
1 parent 31ec879 commit f9f9bfa
Show file tree
Hide file tree
Showing 14 changed files with 609 additions and 55 deletions.
2 changes: 1 addition & 1 deletion 3rdparty/haskell/BUILD.c2hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ hazel_symlink(
)


ghc_workspace = "@io_tweag_rules_haskell_ghc_windows_amd64" if is_windows else "@io_tweag_rules_haskell_ghc-nixpkgs"
ghc_workspace = "@io_tweag_rules_haskell_ghc_windows_amd64" if is_windows else "@io_tweag_rules_haskell_ghc_nixpkgs"

cabal_haskell_package(
package,
Expand Down
Loading

0 comments on commit f9f9bfa

Please sign in to comment.