plotter_experiments/shell.nix
fruchti cc7e3fde57 Shell: Add missing cairo build dependency
pycairo’s wheel doesn’t build otherwise
2023-03-04 11:15:03 +01:00

22 lines
455 B
Nix

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