From 7d48eb21036c73b3d03cb29873d7646f37f4c583 Mon Sep 17 00:00:00 2001 From: Rob Bassi Date: Mon, 11 Jan 2021 19:03:51 -0500 Subject: [PATCH] Add nix support --- shell.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..8e95704 --- /dev/null +++ b/shell.nix @@ -0,0 +1,18 @@ +{ pkgs ? import {} }: +pkgs.mkShell { + # deps, pipenv does the heavy lifting + inputsFrom = with pkgs; [ pipenv brave ]; + buildInputs = with pkgs; [ python39 ]; + + # startup pipenv + shellHook = '' + ${pkgs.pipenv}/bin/pipenv install + ${pkgs.pipenv}/bin/pipenv shell + ''; + + # environment + OPEN = "${pkgs.brave}/bin/brave"; + PORT = "9090"; + SEGMENT_PATH = "/tmp"; + LOG_PATH = "/tmp/commitlog.dat"; +}