diff options
Diffstat (limited to 'pkgs/games/heroic/default.nix')
-rw-r--r-- | pkgs/games/heroic/default.nix | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/pkgs/games/heroic/default.nix b/pkgs/games/heroic/default.nix index ebf56a21daad..c8c0e730f10e 100644 --- a/pkgs/games/heroic/default.nix +++ b/pkgs/games/heroic/default.nix @@ -1,6 +1,7 @@ { lib , mkYarnPackage , fetchFromGitHub +, gitUpdater , makeWrapper , electron , gogdl @@ -9,13 +10,13 @@ mkYarnPackage rec { pname = "heroic-unwrapped"; - version = "2.4.3"; + version = "2.5.2"; src = fetchFromGitHub { owner = "Heroic-Games-Launcher"; repo = "HeroicGamesLauncher"; rev = "v${version}"; - sha256 = "sha256-x9zIM2kKi+JgIGIidQYjyjqVGweFJ8DE7IX9gYULQuQ="; + sha256 = "sha256-vyZH/uOE7Oph8TuBFM2cUFwM4ed8Ri3fKRUrl9A6zHc="; }; packageJSON = ./package.json; @@ -29,10 +30,11 @@ mkYarnPackage rec { DISABLE_ESLINT_PLUGIN = "true"; postBuild = let - yarnCmd = "yarn --production --offline --frozen-lockfile --ignore-engines --ignore-scripts --lockfile ${yarnLock}"; + yarnCmd = "yarn --offline --frozen-lockfile --ignore-engines --ignore-scripts --lockfile ${yarnLock}"; in '' - ${yarnCmd} build-electron - ${yarnCmd} build + rm deps/heroic/node_modules + ln -s ../../node_modules deps/heroic/ + ${yarnCmd} vite build ''; # Disable bundling into a tar archive. @@ -44,8 +46,8 @@ mkYarnPackage rec { deps = "$out/libexec/heroic/deps/heroic"; in '' rm -rf "${deps}/public/bin" "${deps}/build/bin" - mkdir -p "${deps}/public/bin/linux" - ln -s "${gogdl}/bin/gogdl" "${legendary-gl}/bin/legendary" "${deps}/public/bin/linux" + mkdir -p "${deps}/build/bin/linux" + ln -s "${gogdl}/bin/gogdl" "${legendary-gl}/bin/legendary" "${deps}/build/bin/linux" makeWrapper "${electron}/bin/electron" "$out/bin/heroic" \ --inherit-argv0 \ @@ -59,6 +61,10 @@ mkYarnPackage rec { ln -s "${deps}/flatpak/com.heroicgameslauncher.hgl.png" "$out/share/icons/hicolor/512x512/apps" ''; + passthru.updateScript = gitUpdater { + rev-prefix = "v"; + }; + meta = with lib; { description = "A Native GOG and Epic Games Launcher for Linux, Windows and Mac"; homepage = "https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher"; |