From 568da3c892bbb76ab74994f13a3562b919ff6b10 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 25 Apr 2022 00:18:58 +0200 Subject: [PATCH] Add nix shell --- processing/shell.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 processing/shell.nix diff --git a/processing/shell.nix b/processing/shell.nix new file mode 100644 index 0000000..7aa02b7 --- /dev/null +++ b/processing/shell.nix @@ -0,0 +1,15 @@ +{ pkgs ? import {} }: +let + pythonWithPkgs = pkgs.python3.withPackages (p: with p; [ + pillow + ]); +in +pkgs.mkShell { + buildInputs = [ + pythonWithPkgs + ]; + + shellHook = '' + PYTHONPATH=${pythonWithPkgs}/${pythonWithPkgs.sitePackages} + ''; +}