diff options
Diffstat (limited to 'shell.nix')
-rw-r--r-- | shell.nix | 13 |
1 files changed, 13 insertions, 0 deletions
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 <nixpkgs> {}; +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 + ''; +} |