Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
31 lines
837 B
Nix
31 lines
837 B
Nix
{ appimageTools, fetchurl }:
|
|
|
|
let
|
|
pname = "krunker";
|
|
version = "2.1.3";
|
|
|
|
appId = "io.krunker.desktop";
|
|
|
|
src = fetchurl {
|
|
url = "https://client2.krunker.io/Official%20Krunker.io%20Client-${version}.AppImage";
|
|
hash = "sha512-a8E5heLsKXOtv/wRKlrnV0GD48cY1mOiSSDW93c7YZ+HoeuBQDxtRaHKg5EqU51Yi+d4tPF5nOh10jZW36c7WQ==";
|
|
};
|
|
|
|
appimageContents = appimageTools.extractType2 {
|
|
inherit pname version src;
|
|
};
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
|
inherit pname version src;
|
|
|
|
extraInstallCommands = ''
|
|
mkdir -p $out/share/{applications,pixmaps}
|
|
install -Dm644 ${appimageContents}/${appId}.desktop -t $out/share/applications
|
|
install -Dm644 ${appimageContents}/${appId}.png -t $out/share/pixmaps
|
|
|
|
substituteInPlace $out/share/applications/${appId}.desktop \
|
|
--replace-fail 'Exec=AppRun' "Exec=$pname"
|
|
'';
|
|
}
|