···11+{ lib
22+, stdenvNoCC
33+, fetchurl
44+, undmg
55+}:
66+77+stdenvNoCC.mkDerivation (finalAttrs: {
88+ pname = "airbuddy";
99+ version = "2.6.3";
1010+1111+ src = fetchurl {
1212+ name = "AirBuddy.dmg";
1313+ url = "https://download.airbuddy.app/WebDownload/AirBuddy_v${finalAttrs.version}.dmg";
1414+ hash = "sha256-q/Mbkm90ptIkdTLV2KDT9CM2Hsxnkway5Fw0F6d7Tqc=";
1515+ };
1616+1717+ dontPatch = true;
1818+ dontConfigure = true;
1919+ dontBuild = true;
2020+ dontFixup = true;
2121+2222+ nativeBuildInputs = [ undmg ];
2323+2424+ sourceRoot = "AirBuddy.app";
2525+2626+ installPhase = ''
2727+ runHook preInstall
2828+2929+ mkdir -p $out/Applications/AirBuddy.app
3030+ cp -R . $out/Applications/AirBuddy.app
3131+3232+ runHook postInstall
3333+ '';
3434+3535+ meta = with lib; {
3636+ description = "Take Control of Your Wireless Devices on macOS";
3737+ longDescription = ''
3838+ Open your AirPods case next to your Mac to see the status right away, just like it works on your iPhone or iPad.
3939+ AirBuddy lives in your Menu Bar and can also show battery information for your iPhone, iPad, Apple Watch, Mouse, Keyboard, and more.
4040+ '';
4141+ homepage = "https://v2.airbuddy.app";
4242+ changelog = "https://support.airbuddy.app/articles/airbuddy-2-changelog";
4343+ license = with licenses; [ unfree ];
4444+ sourceProvenance = with sourceTypes; [ binaryNativeCode ];
4545+ maintainers = with maintainers; [ stepbrobd ];
4646+ platforms = [ "aarch64-darwin" "x86_64-darwin" ];
4747+ };
4848+})