diff options
author | Ben Sima <ben@bsima.me> | 2020-07-14 20:29:53 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-07-14 20:29:53 -0700 |
commit | 584239a1a0c97f9d57f2de76c04708127178bceb (patch) | |
tree | 9114e816425ad03c521d1b4d37eea986cd5ecbd0 /nix | |
parent | ca28f4a86b839d702bdaa70925884aa2bd5cf9ed (diff) |
dev: move some commands to shell
Diffstat (limited to 'nix')
-rw-r--r-- | nix/build.nix | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/nix/build.nix b/nix/build.nix index dd16df6..7335159 100644 --- a/nix/build.nix +++ b/nix/build.nix @@ -93,7 +93,37 @@ in { installPhase = "exit 0"; } // { env = ghcjs; }; - env = ghc_ allDeps; + env = mkShell { + name = "bizdev"; + buildInputs = [ + (ghc_ allDeps) + # this says something about missing haskelline? + #(ghcjs_ allDeps) + + nixpkgs.niv.niv + nixpkgs.hlint + nixpkgs.ormolu + nixpkgs.python37Packages.black + nixpkgs.python37Packages.pylint + nixpkgs.wemux + ]; + shellHook = '' + echo "bizdev" | ${nixpkgs.figlet}/bin/figlet | ${nixpkgs.lolcat}/bin/lolcat + echo "(be sure to run 'nix-shell' to get the build functions)" + echo "-------------------------------------------------------" + echo "" + + function repl() { + ghci -i$BIZ_ROOT -ghci-script "$BIZ_ROOT/.ghci" + } + + function deps() { + niv --sources-file $BIZ_ROOT/nix/sources.json $@ + } + + alias lint=$BIZ_ROOT/Biz/lint.py + ''; + }; os = cfg: (nixos (args: lib.attrsets.recursiveUpdate cfg { boot.cleanTmpDir = true; |