Created
January 5, 2018 12:07
-
-
Save mpickering/209354a6affe2883ca07ffc4f4084af6 to your computer and use it in GitHub Desktop.
Final script from "Using a development version of GHC with nix"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
nixpkgs = import <nixpkgs> {}; | |
patchRepo = | |
nixpkgs.fetchFromGitHub { | |
owner = "mpickering"; | |
repo = "head.hackage"; | |
rev = "767dcf11b367ccff4a9fcd55df9c2432cd485fbe"; | |
sha256 = "1cdrcw7grpc2dyxnb7a5bg9mi1h7qnblcibi91s348034zf7a0vj";}; | |
patchDir = "${patchRepo}/patches"; | |
patchScript = "${patchRepo}/scripts/overrides.nix"; | |
in | |
self: super: | |
{ | |
patches = super.callPackage patchScript | |
{ patches = patchDir; }; | |
new-ghcHEAD = | |
let ghcPackageOverrides = super.callPackage self.patches {}; | |
localOverrides = | |
sel: sup: { haskell-src-exts | |
= sel.callHackage "haskell-src-exts" "1.20.1" {}; | |
mkDerivation | |
= drv: sup.mkDerivation (drv // | |
{ jailbreak = true; doHaddock = false;}); | |
}; | |
in super.haskell.packages.ghcHEAD.extend | |
(self.lib.composeExtensions localOverrides ghcPackageOverrides); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment