Add nix shell

This commit is contained in:
Oystein Kristoffer Tveit 2022-04-25 00:18:58 +02:00
parent f8463cec6b
commit 568da3c892

15
processing/shell.nix Normal file
View File

@ -0,0 +1,15 @@
{ pkgs ? import <nixpkgs> {} }:
let
pythonWithPkgs = pkgs.python3.withPackages (p: with p; [
pillow
]);
in
pkgs.mkShell {
buildInputs = [
pythonWithPkgs
];
shellHook = ''
PYTHONPATH=${pythonWithPkgs}/${pythonWithPkgs.sitePackages}
'';
}