Skip to content

Commit

Permalink
chore: Disable exactDeps and the HLS check.
Browse files Browse the repository at this point in the history
Unfortunately, this is required when we use a
`source-repository-package`, as we're about to do for an
as-yet-unreleased version of Selda.

See:
#876
  • Loading branch information
dhess committed Mar 1, 2023
1 parent f96fd3f commit faee106
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -255,18 +255,22 @@
# https://github.com/hackworthltd/primer/issues/632
// (pkgs.lib.optionalAttrs (system == "aarch64-darwin") {

# We're using `source-repository-package`, so we must
# disable this. See:
# https://github.com/hackworthltd/primer/issues/876

# Make sure HLS can typecheck our project.
check-hls = pkgs.callPackage ./nix/pkgs/check-hls {
src = onlyHaskellSrc;
# check-hls = pkgs.callPackage ./nix/pkgs/check-hls {
# src = onlyHaskellSrc;

# Don't use the flake's version here; we only want to run
# this HLS check when the Haskell source files have
# changed, not on every commit to this repo.
version = "1.0";
# # Don't use the flake's version here; we only want to run
# # this HLS check when the Haskell source files have
# # changed, not on every commit to this repo.
# version = "1.0";

# This is a bit of a hack, but we don't know a better way.
inherit (primerFlake) devShell;
};
# # This is a bit of a hack, but we don't know a better way.
# inherit (primerFlake) devShell;
# };
})
// primerFlake.checks;

Expand Down Expand Up @@ -457,7 +461,10 @@
];

shell = {
exactDeps = true;
# We're using a `source-repository-package`, so we must disable this.
# See:
# https://github.com/hackworthltd/primer/issues/876
#exactDeps = true;
withHoogle = true;

tools = {
Expand Down

0 comments on commit faee106

Please sign in to comment.