Created
November 6, 2017 13:54
-
-
Save alpmestan/6d869cdf05500ca7f5837e22fc6c0723 to your computer and use it in GitHub Desktop.
To put in ~/.config/nixpkgs/
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
{ | |
packageOverrides = ps: rec { | |
haskell.compiler = ps.haskell.compiler // { | |
myghc = ps.haskell.compiler.ghcHEAD.overrideDerivation (p: { | |
src = fetchgit { | |
url = "git://git.haskell.org/ghc.git"; | |
rev = "commit hash here"; | |
sha256 = "sha that nix computes for this"; | |
}; | |
}); | |
}; | |
haskell.packages = ps.haskell.packages // { | |
myghc = ps.haskell.packages.ghcHEAD.override { | |
ghc = haskell.compiler.myghc; | |
}; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment