Skip to content

Commit 9df9f43

Browse files
Copilotandreasabel
andcommitted
Disable tests in nix build to fix circular dependency
The testsuite requires the agda2hs binary to be in PATH, but during nix build of the Haskell package, the binary isn't available yet. This creates a circular dependency. Use dontCheck to disable tests in nix builds - tests should be run via `cabal test` in a development environment instead. Co-authored-by: andreasabel <[email protected]>
1 parent 14b7595 commit 9df9f43

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nix/lib.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ let
1010
src = ../.;
1111
extraCabal2nixOptions = options; # "--jailbreak"
1212
};
13-
hpkg = pkgs.haskellPackages.callPackage (hsrc "") { };
13+
# Disable tests in nix build - the testsuite requires the agda2hs binary
14+
# to be in PATH, which is a circular dependency. Tests should be run
15+
# via `cabal test` in a development environment instead.
16+
hpkg = pkgs.haskell.lib.dontCheck (pkgs.haskellPackages.callPackage (hsrc "") { });
1417
expr = import ./agda2hs.nix;
1518
agda2hs = pkgs.lib.makeScope pkgs.newScope (
1619
self:

0 commit comments

Comments
 (0)