mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 16:45:49 +01:00
1a634cc057
they're unnecessary since https://github.com/NixOS/nixpkgs/pull/161739/files which links the schemas to their correct fhs locations and adds gsettings-desktop-schemas and hicolor-icon-theme to appimage fhs
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ lib, fetchurl, appimageTools }:
|
|
|
|
let
|
|
pname = "heroic";
|
|
version = "2.2.6";
|
|
name = "${pname}-${version}";
|
|
src = fetchurl {
|
|
url = "https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases/download/v${version}/Heroic-${version}.AppImage";
|
|
sha256 = "sha256-kL30/G4DpDPwGN7PvbWest7TcgL4Rd1c2OM4nRCT3bg=";
|
|
};
|
|
appimageContents = appimageTools.extractType2 { inherit name src; };
|
|
|
|
in
|
|
appimageTools.wrapType2 {
|
|
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" ];
|
|
};
|
|
}
|