Last active
August 29, 2015 14:21
-
-
Save meditans/d66371137814d0dc3707 to your computer and use it in GitHub Desktop.
nix haskell configuration for cabal hacking
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
{ 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