Fix can't run from Fedora
All QML is missing on Fedora
This commit is contained in:
parent
cba9d5138c
commit
a068fe8afc
1 changed files with 15 additions and 11 deletions
26
flake.nix
26
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;
|
||||
};
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue