mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
42 lines
1.3 KiB
Nix
42 lines
1.3 KiB
Nix
{
|
|
appimageTools,
|
|
fetchurl,
|
|
lib,
|
|
makeWrapper,
|
|
}:
|
|
appimageTools.wrapType2 rec {
|
|
pname = "cubelify";
|
|
version = "1.25.13";
|
|
|
|
src = fetchurl {
|
|
url = "https://storage.cubelify.com/overlay/v1/Cubelify%20Overlay-${version}.AppImage";
|
|
hash = "sha512-1gNMoaEdh5qAySgRl9rjrFPLFpdTt6YxMaYdry4AJpQhNYxv45M1pq7D5HqJ4xgZHQZxfERPo+Wvfzk1rwaWog==";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
extraInstallCommands =
|
|
let
|
|
contents = appimageTools.extract { inherit pname version src; };
|
|
in
|
|
''
|
|
wrapProgram $out/bin/cubelify \
|
|
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}"
|
|
install -Dm444 ${contents}/cubelify-overlay.desktop -t $out/share/applications/
|
|
install -Dm444 ${contents}/cubelify-overlay.png -t $out/share/icons
|
|
substituteInPlace $out/share/applications/cubelify-overlay.desktop \
|
|
--replace-fail 'Exec=AppRun --no-sandbox %U' 'Exec=cubelify'
|
|
'';
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
meta = {
|
|
description = "Powerful and feature-rich Hypixel anti-sniping stats overlay";
|
|
homepage = "https://cubelify.com/";
|
|
license = lib.licenses.unfree;
|
|
mainProgram = "cubelify";
|
|
maintainers = with lib.maintainers; [ yunfachi ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|