Created
March 20, 2020 20:26
-
-
Save zeta-00/5c445f688410e6de7336eeac6009d41b 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 | |
cabal2nix_file = import ./darcs.nix {}; | |
pkgs = import <nixpkgs> { }; | |
compilerVersion = "ghc865"; | |
compiler = pkgs.haskell.packages."${compilerVersion}"; | |
in | |
compiler.developPackage { | |
root = ./.; | |
# source-overrides = {}; | |
modifier = drv: | |
let pkg = pkgs.haskell.lib.addBuildTools drv (with pkgs.haskellPackages; | |
[ | |
cabal-install | |
cabal2nix | |
ghcid | |
pkgs.curl | |
]); | |
in pkg // { | |
env = pkg.env.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