Add glibc for poetry

This commit is contained in:
Evie Litherland-Smith 2023-04-04 17:37:38 +01:00
parent 34816bc2c6
commit cd54ceba9d

View file

@ -1,4 +1,4 @@
{ pkgs ? import <nixpkgs> {}, python ? pkgs.python39, ... }: { pkgs ? import <nixpkgs> {}, python ? pkgs.python3, ... }:
let let
python-packages = ps: with ps; [ python-packages = ps: with ps; [
@ -14,13 +14,14 @@ pkgs.mkShell {
git git
zlib zlib
libgccjit libgccjit
glibc
glibc_multi
]; ];
shellHook = '' shellHook = ''
export LD_LIBRARY_PATH="${pkgs.zlib}/lib:${pkgs.libgccjit}/lib" export LD_LIBRARY_PATH="${pkgs.glibc}/lib:${pkgs.glibc_multi}/lib:${pkgs.zlib}/lib:${pkgs.libgccjit}/lib"
poetry lock --check > /dev/null || poetry lock [ ! -f "pyproject.toml" ] && poetry init -n
poetry env use "$(command -v ${python}/bin/python)" poetry env use "$(command -v ${python}/bin/python)"
[ ! -d "./.venv" ] && poetry install --sync [ -d "./.venv" ] && source .venv/bin/activate
source .venv/bin/activate
''; '';
} }