Created
July 23, 2015 19:12
-
-
Save codedmart/ceb3b11c7acead68afe1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 }: | |
| let | |
| vimrc = import ./vim/vimrc.nix {}; | |
| vimPlugins = import ./vim/vimPlugins.nix { inherit pkgs; }; | |
| in | |
| with pkgs; rec { | |
| allowBroken = true; | |
| allowUnfree = true; | |
| vim = { | |
| gui = "macvim"; | |
| }; | |
| haskellPackageOverrides = with pkgs.haskellPackages.lib; self: super: { | |
| ghc-mod = pkgs.haskellPackages.callPackage ./haskell/ghc-mod.nix {}; | |
| }; | |
| packageOverrides = pkgs : rec { | |
| # Vim plugins | |
| vimrcConfig = { | |
| vam.knownPlugins = pkgs.vimPlugins // vimPlugins.expr; | |
| vam.pluginDictionaries = vimPlugins.dict; | |
| customRC = vimrc.config; | |
| }; | |
| # Shell Env | |
| shellEnv = with pkgs; buildEnv { | |
| name = "shell-env"; | |
| paths = [ | |
| pkgs.bashInteractive | |
| pkgs.bashCompletion | |
| pkgs.python | |
| python27Packages.virtualenv | |
| python27Packages.pip | |
| pkgs.wget | |
| pkgs.git | |
| pkgs.silver-searcher | |
| pkgs.gnupg | |
| pkgs.cmake | |
| pkgs.tmux | |
| pkgs.tmuxinator | |
| ]; | |
| }; | |
| # Vim | |
| vimEnv = with pkgs; buildEnv { | |
| name = "vim-env"; | |
| paths = [ | |
| (vim_configurable.customize { | |
| name = "vim"; | |
| vimrcConfig = vimrcConfig; | |
| }) | |
| ]; | |
| }; | |
| # Neovim | |
| neoVimEnv = with pkgs; buildEnv { | |
| name = "neovim-env"; | |
| paths = [ | |
| (neovim.override { | |
| configure = vimrcConfig; | |
| }) | |
| ]; | |
| }; | |
| # GHC 7.6.3 | |
| ghc763 = pkgs.haskell.packages.ghc763.ghcWithPackages ( | |
| haskellPackages: with haskellPackages; [ | |
| cabal-install | |
| cabal2nix | |
| ghc-mod | |
| ] | |
| ); | |
| ghc784 = pkgs.haskell.packages.ghc784.ghcWithPackages ( | |
| haskellPackages: with haskellPackages; [ | |
| cabal-install | |
| cabal2nix | |
| ghc-mod | |
| ] | |
| ); | |
| # GHC 7.10.1 | |
| ghc7101 = pkgs.haskell.packages.ghc7101.ghcWithPackages ( | |
| haskellPackages: with haskellPackages; [ | |
| cabal-install | |
| cabal2nix | |
| ghc-mod | |
| ] | |
| ); | |
| }; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment