plotter_experiments/shell.nix

21 lines
441 B
Nix
Raw Normal View History

2022-12-11 12:58:10 +01:00
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
name = "plotter-env";
buildInputs = with pkgs; [
python310
python310Packages.venvShellHook
autoPatchelfHook
];
propagatedBuildInputs = with pkgs; [
stdenv.cc.cc.lib
];
venvDir = "./venv";
postVenvCreation = ''
pip install -U pip setuptools wheel
pip install -r requirements.txt
autoPatchelf ./venv
'';
}