2022-05-15 02:08:10 +00:00
|
|
|
{ lib, fetchurl, appimageTools }:
|
2021-12-03 20:57:34 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "heroic";
|
2022-04-19 13:01:44 +00:00
|
|
|
version = "2.2.6";
|
2021-12-03 20:57:34 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases/download/v${version}/Heroic-${version}.AppImage";
|
2022-04-19 13:01:44 +00:00
|
|
|
sha256 = "sha256-kL30/G4DpDPwGN7PvbWest7TcgL4Rd1c2OM4nRCT3bg=";
|
2021-12-03 20:57:34 +00:00
|
|
|
};
|
|
|
|
appimageContents = appimageTools.extractType2 { inherit name src; };
|
|
|
|
|
2022-01-07 05:02:41 +00:00
|
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
2021-12-03 20:57:34 +00:00
|
|
|
inherit name src;
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
mv $out/bin/${name} $out/bin/${pname}
|
|
|
|
|
|
|
|
mkdir -p $out/share/${pname}
|
|
|
|
cp -a ${appimageContents}/locales $out/share/${pname}
|
|
|
|
cp -a ${appimageContents}/resources $out/share/${pname}
|
|
|
|
|
|
|
|
install -m 444 -D ${appimageContents}/heroic.desktop -t $out/share/applications
|
|
|
|
|
|
|
|
cp -a ${appimageContents}/usr/share/icons $out/share/
|
|
|
|
|
|
|
|
substituteInPlace $out/share/applications/heroic.desktop \
|
|
|
|
--replace 'Exec=AppRun' 'Exec=heroic'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Native GUI Epic Games Launcher for Linux, Windows and Mac";
|
|
|
|
homepage = "https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ wolfangaukang ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|