Auto initialize and activate virtualenv

backend_spec
Guillermo Rodriguez 2023-02-11 15:36:50 -03:00
parent 3ea6554ab0
commit 5017c541db
No known key found for this signature in database
GPG Key ID: EC3AB66D5D83B392
1 changed files with 6 additions and 0 deletions

View File

@ -22,5 +22,11 @@ stdenv.mkDerivation {
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${R}/lib/R/lib:${readline}/lib
export QT_QPA_PLATFORM_PLUGIN_PATH="${qt5.qtbase.bin}/lib/qt-${qt5.qtbase.version}/plugins";
if [ ! -d "venv" ]; then
virtualenv venv
fi
source venv/bin/activate
'';
}