diff --git a/pkgs/games/lgogdownloader/default.nix b/pkgs/games/lgogdownloader/default.nix index ab029e055aa9..b49df81643b7 100644 --- a/pkgs/games/lgogdownloader/default.nix +++ b/pkgs/games/lgogdownloader/default.nix @@ -11,8 +11,13 @@ , rhash , tinyxml-2 , help2man +, wrapQtAppsHook +, qtbase +, qtwebengine , testers , lgogdownloader + +, enableGui ? true }: stdenv.mkDerivation rec { @@ -30,7 +35,7 @@ stdenv.mkDerivation rec { cmake pkg-config help2man - ]; + ] ++ lib.optional enableGui wrapQtAppsHook; buildInputs = [ boost @@ -40,8 +45,13 @@ stdenv.mkDerivation rec { liboauth rhash tinyxml-2 + ] ++ lib.optionals enableGui [ + qtbase + qtwebengine ]; + cmakeFlags = lib.optional enableGui "-DUSE_QT_GUI=ON"; + passthru.tests = { version = testers.testVersion { package = lgogdownloader; }; }; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index abeeb358e065..bdec9c8ab96c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -34916,7 +34916,7 @@ with pkgs; left4gore-bin = callPackage ../games/left4gore { }; - lgogdownloader = callPackage ../games/lgogdownloader { }; + lgogdownloader = libsForQt5.callPackage ../games/lgogdownloader { }; liberal-crime-squad = callPackage ../games/liberal-crime-squad { };