Daily blog update

main
Alice 2020-09-09 22:27:03 -04:00
parent 0c27945e03
commit dc29146b78
1 changed files with 32 additions and 0 deletions

32
shell.nix Normal file
View File

@ -0,0 +1,32 @@
# https://wizzup.github.io/posts/nix-shell-haskell-invocation/
# shell.nix for nix-shell (haskell)
{ pkgs ? import <nixpkgs> {} }:
let
ghc = pkgs.haskellPackages.ghcWithHoogle (self: with self; [
hspec
split
hakyll
random
neat-interpolation
]);
in
pkgs.mkShell {
name = "haskell-shell";
buildInputs = (with pkgs.haskellPackages; [
ghc
hlint
stack
ghcjs-dom
cabal-install
]) ++ (with pkgs; [
nano
]);
shellHook = ''
eval "$(egrep ^export "$(type -p ghc)")"
export PS1="\[\033[1;32m\][ns-hs:\w]\n$ \[\033[0m\]"
'';
}