diff options
author | Ben Sima <ben@bsima.me> | 2020-04-19 14:36:59 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-04-19 14:36:59 -0700 |
commit | 43302fc3086cfced7bf4d93a493fc1edc04d9ca8 (patch) | |
tree | be22f034a8e5b3db2d99bd1c3a3ed0404b074436 /shell.nix | |
parent | 7cb550d9e30f7fbb4a04c544df800327ea2e49ec (diff) |
Basic use of nix-shell with direnv/lorri
Diffstat (limited to 'shell.nix')
-rw-r--r-- | shell.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..8fe59f8 --- /dev/null +++ b/shell.nix @@ -0,0 +1,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 + ''; +}) |