Skip to content

Instantly share code, notes, and snippets.

@meditans
Last active August 29, 2015 14:21
Show Gist options
  • Save meditans/d66371137814d0dc3707 to your computer and use it in GitHub Desktop.
Save meditans/d66371137814d0dc3707 to your computer and use it in GitHub Desktop.
nix haskell configuration for cabal hacking
{ pkgs }: {
allowUnfree = true;
packageOverrides = super: let self = super.pkgs; in {
haskellPackages = super.haskellPackages.override {
overrides = self: super: {
ghc-mod = self.callPackage /home/meditans/code/haskell/ghc-mod/default.nix {};
cabal-helper = self.callPackage /home/meditans/code/haskell/cabal-helper-0.3.4.0/default.nix {};
# I created this entry pointing to the git repo, but it's not working
myCabal = self.callPackage /home/meditans/code/haskell/cabal/Cabal/default.nix {};
};
};
haskellEnv = self.haskellPackages.ghcWithPackages
(haskellPackages: with haskellPackages; [
cabal2nix
cabal-install
stylish-haskell
ghc-mod
hindent
structured-haskell-mode
present
# myCabal
]);
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment