Skip to content

Commit 09b1014

Browse files
authored
Heroic Games Launcher: various fixes (#383560)
2 parents eb2cd36 + 859a89b commit 09b1014

File tree

3 files changed

+45
-2
lines changed

3 files changed

+45
-2
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
lib,
3+
gitUpdater,
4+
fetchFromGitHub,
5+
python3Packages,
6+
}:
7+
let
8+
version = "0.20.36";
9+
in
10+
python3Packages.buildPythonApplication {
11+
pname = "legendary-heroic";
12+
inherit version;
13+
14+
src = fetchFromGitHub {
15+
owner = "Heroic-Games-Launcher";
16+
repo = "legendary";
17+
rev = version;
18+
sha256 = "sha256-+aywgd5RZfkmVuA0MaF2/Ie4a5If/zQxvVCcTfGpQpE=";
19+
};
20+
21+
propagatedBuildInputs = with python3Packages; [
22+
requests
23+
filelock
24+
];
25+
26+
disabled = python3Packages.pythonOlder "3.8";
27+
28+
pythonImportsCheck = [ "legendary" ];
29+
30+
meta = with lib; {
31+
description = "Free and open-source Epic Games Launcher alternative";
32+
longDescription = ''
33+
This is the Heroic Games Launcher's fork of legendary.
34+
'';
35+
homepage = "https://github.com/Heroic-Games-Launcher/legendary";
36+
license = licenses.gpl3;
37+
maintainers = with maintainers; [ aidalgol ];
38+
mainProgram = "legendary";
39+
};
40+
41+
passthru.updateScript = gitUpdater { };
42+
}

pkgs/games/heroic/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
electron,
1111
vulkan-helper,
1212
gogdl,
13-
legendary-gl,
13+
legendary-heroic,
1414
nile,
1515
comet-gog,
1616
}:
@@ -79,7 +79,7 @@ stdenv.mkDerivation (finalAttrs: {
7979
mkdir -p "$out/opt/heroic/resources/app.asar.unpacked/build/bin/x64/linux"
8080
ln -s \
8181
"${lib.getExe gogdl}" \
82-
"${lib.getExe legendary-gl}" \
82+
"${lib.getExe legendary-heroic}" \
8383
"${lib.getExe nile}" \
8484
"${lib.getExe comet-gog}" \
8585
"${lib.getExe vulkan-helper}" \

pkgs/games/heroic/fhsenv.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ buildFHSEnv {
3131
nettools
3232
opencl-headers
3333
p7zip
34+
pciutils
3435
perl
3536
psmisc
3637
python3

0 commit comments

Comments
 (0)