add krunker
This commit is contained in:
parent
b9db9fe232
commit
3c2ddd618b
4 changed files with 40 additions and 0 deletions
|
@ -48,6 +48,7 @@
|
||||||
# gaming
|
# gaming
|
||||||
../../programs/games
|
../../programs/games
|
||||||
../../programs/games/roblox.nix
|
../../programs/games/roblox.nix
|
||||||
|
../../programs/games/krunker.nix
|
||||||
#../../programs/games/ludusavi.nix
|
#../../programs/games/ludusavi.nix
|
||||||
|
|
||||||
# media services
|
# media services
|
||||||
|
|
9
home/programs/games/krunker.nix
Normal file
9
home/programs/games/krunker.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
self,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = [
|
||||||
|
self.packages.${pkgs.system}.krunker
|
||||||
|
];
|
||||||
|
}
|
|
@ -4,4 +4,5 @@
|
||||||
pince = pkgs.callPackage ./pince {};
|
pince = pkgs.callPackage ./pince {};
|
||||||
binaryninja-personal = pkgs.qt6Packages.callPackage ./binaryninja-personal {};
|
binaryninja-personal = pkgs.qt6Packages.callPackage ./binaryninja-personal {};
|
||||||
sobercookie = pkgs.callPackage ./sobercookie {};
|
sobercookie = pkgs.callPackage ./sobercookie {};
|
||||||
|
krunker = pkgs.callPackage ./krunker {};
|
||||||
}
|
}
|
||||||
|
|
29
pkgs/krunker/default.nix
Normal file
29
pkgs/krunker/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
{
|
||||||
|
appimageTools,
|
||||||
|
fetchurl,
|
||||||
|
imagemagick,
|
||||||
|
}: let
|
||||||
|
pname = "krunker";
|
||||||
|
version = "0.0.1";
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://client2.krunker.io/setup.AppImage";
|
||||||
|
hash = "sha256-yG8E3a6AaX0TBK23TlBBLmiCfqzS8FldTfl7As4Dcvo=";
|
||||||
|
};
|
||||||
|
appimageContents = appimageTools.extract {
|
||||||
|
inherit pname version src;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
appimageTools.wrapType2 {
|
||||||
|
inherit pname version src;
|
||||||
|
extraInstallCommands = ''
|
||||||
|
for i in 16 24 48 64 96 128 256 512; do
|
||||||
|
mkdir -p $out/share/icons/hicolor/''${i}x''${i}/apps
|
||||||
|
${imagemagick}/bin/convert -background none -resize ''${i}x ${appimageContents}/io.krunker.desktop.png $out/share/icons/hicolor/''${i}x''${i}/apps/io.krunker.desktop.png
|
||||||
|
done
|
||||||
|
|
||||||
|
install -m 444 -D ${appimageContents}/io.krunker.desktop.desktop $out/share/applications/krunker.desktop
|
||||||
|
substituteInPlace $out/share/applications/krunker.desktop \
|
||||||
|
--replace 'Exec=AppRun' 'Exec=${pname}' \
|
||||||
|
--replace 'Name=Official Krunker.io Client' 'Name=Krunker.io'
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue