diff --git a/flake.nix b/flake.nix index 4cb5550..4ee6bf7 100644 --- a/flake.nix +++ b/flake.nix @@ -10,21 +10,23 @@ flake-utils.lib.eachSystem flake-utils.lib.allSystems (system: let pkgs = import nixpkgs { inherit system; }; + + kdeDependencies = with pkgs.kdePackages; [ + qtbase + qtdeclarative + kirigami.unwrapped + ki18n + kcoreaddons + qqc2-desktop-style + sonnet + ]; + + makeQmlImportPath = pkgs.lib.makeSearchPathOutput "bin" "lib/qt-6/qml"; in { devShells = { default = pkgs.mkShell { packages = with pkgs; [ - # For Qt - qt6.wrapQtAppsHook - qt6.qtbase - qt6.qtdeclarative - - # For Kirigami - kdePackages.kirigami - kdePackages.ki18n - kdePackages.kcoreaddons - # For building ninja cmake @@ -37,7 +39,7 @@ # For translation generation ruby - ]; + ] ++ kdeDependencies; dontFixCmake = true; cmakeFlags = [ @@ -45,6 +47,8 @@ "-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON" "-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo" ]; + + QML2_IMPORT_PATH = makeQmlImportPath kdeDependencies; }; }; });