Skip to content

Instantly share code, notes, and snippets.

@alpmestan
Created November 6, 2017 13:54
Show Gist options
  • Save alpmestan/6d869cdf05500ca7f5837e22fc6c0723 to your computer and use it in GitHub Desktop.
Save alpmestan/6d869cdf05500ca7f5837e22fc6c0723 to your computer and use it in GitHub Desktop.
To put in ~/.config/nixpkgs/
{
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