Replies: 2 comments
-
See #192 {
haskellProjects.default = {
settings = {
mypackage = { super, ... }: {
custom = pkg: pkg.overrideAttrs (oa: { postCheck = ''..''; });
};
};
};
} We do want to improve this unnecessarily longwinded API though, hence #192. |
Beta Was this translation helpful? Give feedback.
0 replies
-
For someone who might come across this in the future and wants to run {
haskellProjects.default = {
# will *not* be able to find any dependencies
devShell.tools = hs: { inherit (hs) doctest; };
};
devShells.default = pkgs.mkShell {
inputsFrom = [
config.haskellProjects.default.outputs.devShell
];
nativeBuildInputs = with pkgs; [
# will find dependencies
haskellPackages.doctest
];
};
} I am unsure what exactly makes the first one break, as |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Possibly an obvious question, but I'm new to flake-parts and haskell-flake. doctest recommends running the tests as
cabal repl --with-ghc=doctest
, rather than as a Cabal test-suite or similar. How do I actually add this to a package's checkPhase?I'm used to passing
postCheck
inmkDerivation
's arguments, but that doesn't seem to be a valid attribute inhaskellProjects.*
.Beta Was this translation helpful? Give feedback.
All reactions