Skip to content

Commit 04ac8eb

Browse files
committed
Include doctest and cabal-doctest in the nix develop shell
1 parent 005d3cc commit 04ac8eb

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

flake.nix

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,19 @@
138138
(python3.withPackages (ps: with ps; [sphinx sphinx_rtd_theme recommonmark sphinx-markdown-tables sphinxemoji]))
139139
haskellPackages.implicit-hie
140140
shellcheck
141-
];
141+
] ++
142+
(let
143+
doctest = haskell-nix.hackage-package {
144+
name = "doctest";
145+
version = "0.24.0";
146+
configureArgs = "-f cabal-doctest";
147+
inherit (config) compiler-nix-name;
148+
};
149+
in
150+
[
151+
(doctest.getComponent "exe:cabal-doctest")
152+
(doctest.getComponent "exe:doctest")
153+
]);
142154
# disable Hoogle until someone request it
143155
withHoogle = false;
144156
# Skip cross compilers for the shell

0 commit comments

Comments
 (0)