Skip to content

Commit

Permalink
[Backport release-24.05] lgogdownloader: 3.12 -> 3.14; cleanup (#344307)
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank authored Sep 27, 2024
2 parents 7bd0461 + a5456f4 commit f651414
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 69 deletions.
70 changes: 70 additions & 0 deletions pkgs/by-name/lg/lgogdownloader/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
curl,
boost,
liboauth,
jsoncpp,
htmlcxx,
rhash,
tinyxml-2,
help2man,
html-tidy,
libsForQt5,
testers,
lgogdownloader,

enableGui ? true,
}:

stdenv.mkDerivation rec {
pname = "lgogdownloader";
version = "3.14";

src = fetchFromGitHub {
owner = "Sude-";
repo = "lgogdownloader";
rev = "refs/tags/v${version}";
hash = "sha256-pxYiSefscglHN53wvp38Ec4/3X46sWc56Y4YKNtqABQ=";
};

nativeBuildInputs = [
cmake
pkg-config
help2man
html-tidy
] ++ lib.optional enableGui libsForQt5.wrapQtAppsHook;

buildInputs =
[
boost
curl
htmlcxx
jsoncpp
liboauth
rhash
tinyxml-2
]
++ lib.optionals enableGui [
libsForQt5.qtbase
libsForQt5.qtwebengine
];

cmakeFlags = lib.optional enableGui "-DUSE_QT_GUI=ON";

passthru.tests = {
version = testers.testVersion { package = lgogdownloader; };
};

meta = {
description = "Unofficial downloader to GOG.com for Linux users. It uses the same API as the official GOGDownloader";
mainProgram = "lgogdownloader";
homepage = "https://github.com/Sude-/lgogdownloader";
license = lib.licenses.wtfpl;
maintainers = with lib.maintainers; [ _0x4A6F ];
platforms = lib.platforms.linux;
};
}
67 changes: 0 additions & 67 deletions pkgs/games/lgogdownloader/default.nix

This file was deleted.

2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36835,8 +36835,6 @@ with pkgs;

left4gore-bin = callPackage ../games/left4gore { };

lgogdownloader = libsForQt5.callPackage ../games/lgogdownloader { };

liberal-crime-squad = callPackage ../games/liberal-crime-squad { };

liberation-circuit = callPackage ../games/liberation-circuit { };
Expand Down

0 comments on commit f651414

Please sign in to comment.