Digitale bierlijst

shell.nix 500B

123456789101112131415161718192021222324252627282930
  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. dbus-python
  11. raven
  12. ]);
  13. in
  14. pkgs.mkShell {
  15. name = "piket-client-shell";
  16. packages = [
  17. pythonEnv
  18. ];
  19. shellHook = with pkgs; ''
  20. export QT_QPA_PLATFORM_PLUGIN_PATH="${qt5.qtbase.bin}/lib/qt-${qt5.qtbase.version}/plugins";
  21. export PYTHONPATH=..
  22. '';
  23. }