Add nix development shell file

backend_spec
Guillermo Rodriguez 2023-02-04 14:04:06 -03:00
parent f0b17cb8f7
commit 3ea6554ab0
No known key found for this signature in database
GPG Key ID: EC3AB66D5D83B392
1 changed files with 26 additions and 0 deletions

26
develop.nix 100644
View File

@ -0,0 +1,26 @@
with (import <nixpkgs> {});
with python310Packages;
stdenv.mkDerivation {
name = "pip-env";
buildInputs = [
# System requirements.
readline
# Python requirements (enough to get a virtualenv going).
python310Full
virtualenv
setuptools
pyqt5
pip
];
src = null;
shellHook = ''
# Allow the use of wheels.
SOURCE_DATE_EPOCH=$(date +%s)
# Augment the dynamic linker path
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";
'';
}