From 4217ce42fef4cba0dc5d98b916320985a7476393 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar <3998+srid@users.noreply.github.com> Date: Wed, 28 Jun 2023 12:35:28 -0400 Subject: [PATCH] docs: add more settings example A start at https://github.com/srid/haskell-flake/issues/171#issuecomment-1593487972 --- doc/guide/dependency.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/guide/dependency.md b/doc/guide/dependency.md index bf5d8a94..cfa93cc6 100644 --- a/doc/guide/dependency.md +++ b/doc/guide/dependency.md @@ -35,14 +35,17 @@ In Nix, it is possible to use an exact package built from an arbitrary source (G }; settings = { ema = { # This module can take `{self, super, ...}` args, optionally. - check = false; + check = false; # Disable running tests + haddock = false; # Disable building haddock documentation + jailbreak = true; # Ignore cabal constraints + patches = [ ./patches/ema-bug-fix.patch ]; + cabalFlags.with-generics = true; }; }; }; }; } ``` - We use `check = false` here to disable running tests. 1. Re-run the nix shell (`nix develop`). ### [nixpkgs] functions