Skip to content

Commit eccd186

Browse files
committed
Use tool function for cabal
1 parent 0dedd34 commit eccd186

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

overlays/bootstrap.nix

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -900,14 +900,12 @@ in {
900900
# always has `checkMaterialization = false` to avoid infinite
901901
# recursion.
902902
cabal-install-tool = {compiler-nix-name, ...}@args:
903-
(final.haskell-nix.hackage-package ({pkgs, ...}: {
903+
(final.haskell-nix.tool compiler-nix-name "cabal" ({pkgs, ...}: {
904904
evalPackages = pkgs.buildPackages;
905-
name = "cabal-install";
906905
version = "3.8.1.0";
907906
index-state = final.haskell-nix.internalHackageIndexState;
908-
configureArgs = "--disable-benchmarks --disable-tests";
909907
materialized = ../materialized + "/${compiler-nix-name}/cabal-install";
910-
} // args)).getComponent "exe:cabal";
908+
} // args));
911909
nix-tools-set = { compiler-nix-name, ... }@args:
912910
let
913911
# Until all the dependencies build with 9.0.1 we will have to avoid

0 commit comments

Comments
 (0)