-
-
Save cleverca22/fbd9fb32bdba93b262789d1e732ae7de to your computer and use it in GitHub Desktop.
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
let | |
pkgs = import <nixpkgs> {}; | |
compilerVersion = "ghc865"; | |
compiler = pkgs.haskell.packages."${compilerVersion}"; | |
in | |
compiler.developPackage | |
{ | |
# returnShellEnv = false; | |
root = ./.; | |
# source-overrides = {}; | |
modifier = drv: | |
let pkg = pkgs.haskell.lib.addBuildTools drv (with pkgs.haskellPackages; | |
[ | |
cabal-install | |
cabal2nix | |
ghcid | |
]); | |
in pkg // { | |
env = (pkg.env { withHoogle = true; }).overrideAttrs (old: { | |
shellHook = | |
'' | |
export PS1='\n\[\033[1;32m\][\[\e]0;nix-shell: \W\a\]nix-shell:/\W]\$ \[\033[0m\]' | |
''; | |
}); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment