diff --git a/pkgs/by-name/le/legendary-heroic/package.nix b/pkgs/by-name/le/legendary-heroic/package.nix new file mode 100644 index 000000000000..c0fbd88df158 --- /dev/null +++ b/pkgs/by-name/le/legendary-heroic/package.nix @@ -0,0 +1,42 @@ +{ + lib, + gitUpdater, + fetchFromGitHub, + python3Packages, +}: +let + version = "0.20.36"; +in +python3Packages.buildPythonApplication { + pname = "legendary-heroic"; + inherit version; + + src = fetchFromGitHub { + owner = "Heroic-Games-Launcher"; + repo = "legendary"; + rev = version; + sha256 = "sha256-+aywgd5RZfkmVuA0MaF2/Ie4a5If/zQxvVCcTfGpQpE="; + }; + + propagatedBuildInputs = with python3Packages; [ + requests + filelock + ]; + + disabled = python3Packages.pythonOlder "3.8"; + + pythonImportsCheck = [ "legendary" ]; + + meta = with lib; { + description = "Free and open-source Epic Games Launcher alternative"; + longDescription = '' + This is the Heroic Games Launcher's fork of legendary. + ''; + homepage = "https://github.com/Heroic-Games-Launcher/legendary"; + license = licenses.gpl3; + maintainers = with maintainers; [ aidalgol ]; + mainProgram = "legendary"; + }; + + passthru.updateScript = gitUpdater { }; +} diff --git a/pkgs/games/heroic/default.nix b/pkgs/games/heroic/default.nix index c14915ccdbd8..831ad9a75252 100644 --- a/pkgs/games/heroic/default.nix +++ b/pkgs/games/heroic/default.nix @@ -10,7 +10,7 @@ electron, vulkan-helper, gogdl, - legendary-gl, + legendary-heroic, nile, comet-gog, }: @@ -79,7 +79,7 @@ stdenv.mkDerivation (finalAttrs: { mkdir -p "$out/opt/heroic/resources/app.asar.unpacked/build/bin/x64/linux" ln -s \ "${lib.getExe gogdl}" \ - "${lib.getExe legendary-gl}" \ + "${lib.getExe legendary-heroic}" \ "${lib.getExe nile}" \ "${lib.getExe comet-gog}" \ "${lib.getExe vulkan-helper}" \ diff --git a/pkgs/games/heroic/fhsenv.nix b/pkgs/games/heroic/fhsenv.nix index fb1b633d22b2..25c9bf3c100f 100644 --- a/pkgs/games/heroic/fhsenv.nix +++ b/pkgs/games/heroic/fhsenv.nix @@ -31,6 +31,7 @@ buildFHSEnv { nettools opencl-headers p7zip + pciutils perl psmisc python3