From 3335058680953e94883926e1c66558df5eee7728 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 1 Jun 2023 08:26:13 +0100 Subject: [PATCH] Add LD_LIBRARY_PATH to python nix shell --- templates/python39/shell.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/python39/shell.nix b/templates/python39/shell.nix index 23028e5f..5d7697f7 100644 --- a/templates/python39/shell.nix +++ b/templates/python39/shell.nix @@ -2,6 +2,7 @@ pkgs.mkShell { nativeBuildInputs = with pkgs; [python39 poetry git]; shellHook = '' + export LD_LIBRARY_PATH=${pkgs.stdenv.cc.cc.lib}/lib:${pkgs.zlib}/lib:${pkgs.python39}/lib:$LD_LIBRARY_PATH export PROJECT_NAME=$(basename $(readlink -f .)) [ -e .venv/bin/python3 ] && VENV_FLAG="--upgrade" || VENV_FLAG="--clear"; python3 -m venv --prompt $PROJECT_NAME $VENV_FLAG .venv [ -e .venv/bin/activate ] && source .venv/bin/activate