Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2019
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. haskellPackages = with haskell.lib; haskell.packages.${compiler}.extend (pkgs.lib.composeExtensions
  2. (packageSourceOverrides targets)
  3. (self: super: {
  4. ghcWithPackages = p: super.ghcWithPackages (
  5. f: p f ++ (if false && inNixShell then [ f.cabal-install f.ghcid ] else [])
  6. );
  7. jsaddle = self.callCabal2nix "jsaddle" "${jsaddle-src}/jsaddle" {};
  8. jsaddle-warp = dontCheck (self.callCabal2nix "jsaddle-warp" "${jsaddle-src}/jsaddle-warp" {});
  9. comonad = dontCheck super.comonad;
  10. extra = dontCheck super.extra;
  11. SHA = dontCheck super.SHA;
  12. pureMD5 = dontCheck super.pureMD5;
  13. unliftio = dontCheck super.unliftio;
  14. semigroupoids = dontCheck super.semigroupoids;
  15. megaparsec = dontCheck super.megaparsec;
  16. lens = dontCheck super.lens;
  17. hpack = haskell.packages.ghc844.hpack;
  18. http-types = dontCheck super.http-types;
  19. silently = dontCheck super.silently;
  20. Diff = appendPatch super.Diff "${writeText "Diff-Test.patch" ''
  21. # Diff-Test.patch
  22. diff --git a/test/Test.hs b/test/Test.hs
  23. index 4a4b3c0..f663e99 100644
  24. --- a/test/Test.hs
  25. +++ b/test/Test.hs
  26. @@ -134,7 +134,7 @@ prop_ppDiffR :: DiffInput -> Property
  27. prop_ppDiffR (DiffInput le ri) =
  28. let haskDiff=ppDiff $ getGroupedDiff le ri
  29. utilDiff= unsafePerformIO (runDiff (unlines le) (unlines ri))
  30. - in cover (haskDiff == utilDiff) 90 "exact match" $
  31. + in cover 90 (haskDiff == utilDiff) "exact match" $
  32. classify (haskDiff == utilDiff) "exact match"
  33. (div ((length haskDiff)*100) (length utilDiff) < 110) -- less than 10% bigger
  34. where
  35. ''}";
  36. Shpadoinkle-tests = haskell.packages.ghc844.callCabal2nix "tests" (gitignore ./tests) {};
  37. })
  38. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement