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:
|
flake-utils.lib.eachSystem flake-utils.lib.allSystems (system:
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs { inherit system; };
|
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
|
in
|
||||||
{
|
{
|
||||||
devShells = {
|
devShells = {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
# For Qt
|
|
||||||
qt6.wrapQtAppsHook
|
|
||||||
qt6.qtbase
|
|
||||||
qt6.qtdeclarative
|
|
||||||
|
|
||||||
# For Kirigami
|
|
||||||
kdePackages.kirigami
|
|
||||||
kdePackages.ki18n
|
|
||||||
kdePackages.kcoreaddons
|
|
||||||
|
|
||||||
# For building
|
# For building
|
||||||
ninja
|
ninja
|
||||||
cmake
|
cmake
|
||||||
|
@ -37,7 +39,7 @@
|
||||||
|
|
||||||
# For translation generation
|
# For translation generation
|
||||||
ruby
|
ruby
|
||||||
];
|
] ++ kdeDependencies;
|
||||||
|
|
||||||
dontFixCmake = true;
|
dontFixCmake = true;
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
|
@ -45,6 +47,8 @@
|
||||||
"-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON"
|
"-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON"
|
||||||
"-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo"
|
"-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
QML2_IMPORT_PATH = makeQmlImportPath kdeDependencies;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue