Digitale bierlijst

shell.nix 516B

12345678910111213141516171819202122232425262728293031
  1. let
  2. sources = import ../nix/sources.nix {};
  3. pkgs = import sources.nixpkgs {};
  4. pythonEnv = pkgs.python3.withPackages (pkgs: with pkgs; [
  5. black
  6. mypy
  7. pyside2
  8. qdarkstyle
  9. requests
  10. simpleaudio
  11. dbus-python
  12. raven
  13. ]);
  14. in
  15. pkgs.mkShell {
  16. name = "piket-client-shell";
  17. packages = [
  18. pythonEnv
  19. ];
  20. shellHook = with pkgs; ''
  21. export QT_QPA_PLATFORM_PLUGIN_PATH="${qt5.qtbase.bin}/lib/qt-${qt5.qtbase.version}/plugins";
  22. export PYTHONPATH=..
  23. '';
  24. }