From f7038cef041a8f00791959766ae8b9a837239211 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Sat, 5 Jul 2025 18:13:49 +0200 Subject: [PATCH] Config: Python-related changes in project flake --- config/flake.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config/flake.nix b/config/flake.nix index ce34712c..6514f7b3 100644 --- a/config/flake.nix +++ b/config/flake.nix @@ -115,6 +115,10 @@ rec { # Java: # gradle + # Python: + # hatch + # py-spy + # Qt: # qt6.wrapQtAppsHook # For the shellHook ]; @@ -203,6 +207,9 @@ rec { # QT imports to use with "qmlls -E" # QML_IMPORT_PATH = "${pkgs.qt6.full}/lib/qt-6/qml"; + # Set PYTHONPATH + # PYTHONPATH = "."; + # ========================================================================================= # Define shell environment # ========================================================================================= @@ -264,6 +271,11 @@ rec { # Clojure: # abbr -a clojure-deps "deps-lock --lein" + + # Python: + # abbr -a run "python ./app/main.py" + # abbr -a profile "py-spy record -o profile.svg -- python ./app/main.py && firefox profile.svg" + # abbr -a ptop "py-spy top -- python ./app/main.py" ''; in builtins.concatStringsSep "\n" [