Fix shell.nix

This commit is contained in:
Zoe Roux 2023-03-20 16:12:56 +09:00
parent d4d223dbf0
commit 8b2dd048d3

View File

@ -12,13 +12,14 @@ in
aspnetcore_6_0 aspnetcore_6_0
]) ])
python3 python3
python3Packages.pip
]; ];
shellHook = '' shellHook = ''
# Install python modules # Install python modules
SOURCE_DATE_EPOCH=$(date +%s) SOURCE_DATE_EPOCH=$(date +%s)
if [ ! -d "${venvDir}" ]; then if [ ! -d "${venvDir}" ]; then
${pkgs.python3} -m venv "${venvDir}" ${pkgs.python3}/bin/python3 -m venv "${venvDir}"
fi fi
source "${venvDir}/bin/activate" source "${venvDir}/bin/activate"
export PIP_DISABLE_PIP_VERSION_CHECK=1 export PIP_DISABLE_PIP_VERSION_CHECK=1