summary refs log tree commit diff
path: root/pkgs/games/heroic
diff options
context:
space:
mode:
authorP. R. d. O <d.ol.rod@protonmail.com>2021-12-03 14:57:34 -0600
committerP. R. d. O <d.ol.rod@protonmail.com>2021-12-03 14:57:34 -0600
commit5ac79dd2ce7b9fb86668241170188787fee9af14 (patch)
tree806a95bac0bb92c49b93ae81233fe4388d351ec2 /pkgs/games/heroic
parent50474e185782880d5d7bffd400ac9a400d1ac668 (diff)
downloadnixpkgs-5ac79dd2ce7b9fb86668241170188787fee9af14.tar
nixpkgs-5ac79dd2ce7b9fb86668241170188787fee9af14.tar.gz
nixpkgs-5ac79dd2ce7b9fb86668241170188787fee9af14.tar.bz2
nixpkgs-5ac79dd2ce7b9fb86668241170188787fee9af14.tar.lz
nixpkgs-5ac79dd2ce7b9fb86668241170188787fee9af14.tar.xz
nixpkgs-5ac79dd2ce7b9fb86668241170188787fee9af14.tar.zst
nixpkgs-5ac79dd2ce7b9fb86668241170188787fee9af14.zip
heroic: init at 1.10.3
Diffstat (limited to 'pkgs/games/heroic')
-rw-r--r--pkgs/games/heroic/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/games/heroic/default.nix b/pkgs/games/heroic/default.nix
new file mode 100644
index 00000000000..e6413a87f2c
--- /dev/null
+++ b/pkgs/games/heroic/default.nix
@@ -0,0 +1,38 @@
+{ lib, fetchurl, appimageTools, python }:
+
+let
+  pname = "heroic";
+  version = "1.10.3";
+  name = "${pname}-${version}";
+  src = fetchurl {
+    url = "https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases/download/v${version}/Heroic-${version}.AppImage";
+    sha256 = "sha256-0VQ5rSGGsEAsOLB4H/Hn2w7wCOrCSoVFzCBqNV5NyVE=";
+  };
+  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" ];
+  };
+}