From 3ea6554ab058be49627707a63abc769dbdea3459 Mon Sep 17 00:00:00 2001 From: Guillermo Rodriguez Date: Sat, 4 Feb 2023 14:04:06 -0300 Subject: [PATCH] Add nix development shell file --- develop.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 develop.nix diff --git a/develop.nix b/develop.nix new file mode 100644 index 00000000..c9b2aa5f --- /dev/null +++ b/develop.nix @@ -0,0 +1,26 @@ +with (import {}); +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"; + ''; +}