From dbc7f7452688afcdc13f3901e9ab78b61ff3853b Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Tue, 23 Apr 2024 16:13:54 +0200 Subject: Add nix shell --- shell.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..b84497b --- /dev/null +++ b/shell.nix @@ -0,0 +1,13 @@ +let + pkgs = import {}; +in pkgs.mkShell { + buildInputs = [ + (pkgs.python3.withPackages (python-pkgs: [python-pkgs.virtualenv])) + pkgs.cairo + ]; + shellHook = '' + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${pkgs.cairo}/lib" + python -m venv "$PWD"/venv + source "$PWD"/venv/bin/activate + ''; +} -- cgit