summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix')
-rw-r--r--nix/build.nix32
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;