Skip to content

Commit 7dd5edf

Browse files
committed
Use bootstrap project file for cabal.
1 parent 436ab73 commit 7dd5edf

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

tool-map.nix

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,15 @@ compiler-nix-name: tool: {
4545
};
4646
happy = { version = "1.20.1.1"; inherit cabalProjectLocal; };
4747
alex = { version = "3.2.7.3"; inherit cabalProjectLocal; };
48-
cabal = { src = self.inputs.cabal; };
48+
cabal = {
49+
src = self.inputs.cabal;
50+
# We use the cabal.boostrap.project file, as we don't
51+
# want an of the cabal complexities they have. The
52+
# bootstrap file, also neatly doesn't do any `import`s.
53+
# which would require us to muck around with the source filter like
54+
#
55+
# cabal = { src = { outPath = self.inputs.cabal; filterPath = { path, ... }: path; }; }
56+
#
57+
cabalProjectFileName = "cabal.bootstrap.project";
58+
};
4959
}.${tool} or fixed-versions.${tool}.${compiler-nix-name} or {}

0 commit comments

Comments
 (0)