Skip to content

Instantly share code, notes, and snippets.

@itsthatguy
Forked from Zhaith-Izaliel/ankama-launcher.nix
Created June 2, 2024 23:14
Show Gist options
  • Save itsthatguy/d2dad2c1be6aaba0c8e71c8191eb31b5 to your computer and use it in GitHub Desktop.
Save itsthatguy/d2dad2c1be6aaba0c8e71c8191eb31b5 to your computer and use it in GitHub Desktop.
NixOS ankama-launcher package
with import <nixpkgs>{};
let
name = "ankama-launcher";
src = fetchurl {
url = "https://download.ankama.com/launcher/full/linux/x64";
sha256 = ""; # Change for the sha256 you get after running nix-prefetch-url https://download.ankama.com/launcher/full/linux/x64
name = "ankama-launcher.AppImage";
};
appimageContents = appimageTools.extractType2 { inherit name src; };
in
appimageTools.wrapType2 {
inherit name src;
extraInstallCommands = ''
install -m 444 -D ${appimageContents}/zaap.desktop $out/share/applications/ankama-launcher.desktop
sed -i 's/.*Exec.*/Exec=ankama-launcher/' $out/share/applications/ankama-launcher.desktop
install -m 444 -D ${appimageContents}/zaap.png $out/share/icons/hicolor/256x256/apps/zaap.png
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment