[Nix-dev] ghc-mod with ghc 7.10.1
Daiderd Jordan
daiderd at gmail.com
Sat May 30 13:01:02 CEST 2015
It looks like you might have to clear out ~/.ghc-mod.
— Daiderd Jordan
On May 30, 2015 at 12:40:21 PM, Daiderd Jordan (daiderd at gmail.com) wrote:
I'm using this, based on a gist https://gist.github.com/bennofs/bd243e58661af62047a5.
On my machine it works for both simple files, and cabal projects (NixOS/master da4177c).
haskellPackageOverrides = self : super : (let inherit (pkgs.haskell-ng) lib; in {
ghc-mod = lib.overrideCabal super.ghc-mod (oldAttrs: {
src = pkgs.fetchgit {
url = https://github.com/kazu-yamamoto/ghc-mod;
rev = "247e4e0e7616fe1fecc68fdcf80d6249ac4cee4f";
sha256 = "2a23271d0e6907351a246f095040ba18c3ab6bf1cba08a14338d701defa55474";
};
buildDepends = oldAttrs.buildDepends ++ [ self.cabal-helper self.cereal ];
});
cabal-helper = lib.overrideCabal super.cabal-helper (oldAttrs: {
version = "0.3.2.0";
sha256 = "06igjmr0n8418wid1pr74cgvlsmwni7ar72g9bddivlbxax1pfli";
});
});
— Daiderd Jordan
Has anyone gotten this to work successfully on nix? I used cabal2nix to
create a package from ghc-mod master branch on github and did the same for
cabal-helper. I had to disable testing on both since they fail for
different reasons (cabal-helper tries to access something in $HOME and I'm
not sure what ghc-mods problem is).
When running `ghc-mod check Main.hs` on a simple file, it seems like
cabal-helper-wrapper complains about the cabal-helper executable not being
found under ~/.ghc/. I have no idea why it would be looking for it there or
how to fix it. Any had any luck with this?
Thanks,
Rich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150530/6ced0117/attachment.html
More information about the nix-dev
mailing list