[Nix-dev] ghc-mod with ghc 7.10.1

Tobias Pflug tobias.pflug at gmx.net
Sat May 30 15:03:50 CEST 2015


>>
>>   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";
>>     });
>>   });

You might want to add this:

   patchPhase = "sed -i 's/Version:\ *0/Version:5.0.1.1/'ghc-mod.cabal";

Otherwise you build a ghc-mod which reports version 0. The vim plugins
I am using for example are not happy about that :)


More information about the nix-dev mailing list