summaryrefslogtreecommitdiff
path: root/shell.nix
blob: 8fe59f80b9a62e99498d7300aef3d1fb72e81239 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  isDevelopmentShell ? true
}:

let
  nixpkgs-tar = builtins.fetchTarball (import ./nixpkgs.nix);
  nixpkgs = import "${nixpkgs-tar}" { overlays = [ (import ./overlay.nix) ]; };
  nixos = import "${nixpkgs-tar}/nixos";
  biz = import ./biz.nix { inherit nixpkgs; };
in nixpkgs.mkShell ({
  name = "bizdev";
  buildInputs = [
    nixpkgs.git
    nixpkgs.hlint
    nixpkgs.niv
    nixpkgs.ormolu
    nixpkgs.python37Packages.black
    nixpkgs.python37Packages.pylint
    nixpkgs.wemux
  ];
  shellHook = ''
    export HERO_PORT=3000
    # TODO: figure out another way to do this
    #export HERO_CLIENT=$PWD/_bild/Com.MusicMeetsComics.Client/static

    echo "biz" | ${nixpkgs.figlet}/bin/figlet | ${nixpkgs.lolcat}/bin/lolcat
  '';
})