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