Guest User

Untitled

a guest
Jan 12th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. let
  2. nixpkgs = import <nixpkgs> {};
  3. patchRepo =
  4. nixpkgs.fetchFromGitHub {
  5. owner = "mpickering";
  6. repo = "head.hackage";
  7. rev = "767dcf11b367ccff4a9fcd55df9c2432cd485fbe";
  8. sha256 = "1cdrcw7grpc2dyxnb7a5bg9mi1h7qnblcibi91s348034zf7a0vj";};
  9.  
  10. patchDir = "${patchRepo}/patches";
  11. patchScript = "${patchRepo}/scripts/overrides.nix";
  12. in
  13. self: super:
  14. {
  15. patches = super.callPackage patchScript
  16. { patches = patchDir; };
  17.  
  18. new-ghcHEAD =
  19. let ghcPackageOverrides = super.callPackage self.patches {};
  20. localOverrides =
  21. sel: sup: { haskell-src-exts
  22. = sel.callHackage "haskell-src-exts" "1.20.1" {};
  23. mkDerivation
  24. = drv: sup.mkDerivation (drv //
  25. { jailbreak = true; doHaddock = false;});
  26. };
  27.  
  28. in super.haskell.packages.ghcHEAD.extend
  29. (self.lib.composeExtensions localOverrides ghcPackageOverrides);
  30. }
Add Comment
Please, Sign In to add comment