2023-06-30 03:32:46 +02:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchurl
|
2024-01-29 22:18:08 +01:00
|
|
|
, _7zz
|
2023-06-30 03:32:46 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
|
|
pname = "airbuddy";
|
2023-07-28 18:40:12 +02:00
|
|
|
version = "2.7.1";
|
2023-06-30 03:32:46 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
name = "AirBuddy.dmg";
|
|
|
|
url = "https://download.airbuddy.app/WebDownload/AirBuddy_v${finalAttrs.version}.dmg";
|
2023-07-28 18:40:12 +02:00
|
|
|
hash = "sha256-z8iy3kIBO+1HDgmWxXmFHArLdw85CLNSMvMFZfEJAp0=";
|
2023-06-30 03:32:46 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
dontPatch = true;
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
dontFixup = true;
|
|
|
|
|
2024-01-29 22:18:08 +01:00
|
|
|
# AirBuddy.dmg is APFS formatted, unpack with 7zz
|
2024-03-02 12:03:56 +01:00
|
|
|
nativeBuildInputs = [ _7zz ];
|
2023-07-08 18:17:49 +02:00
|
|
|
|
2023-06-30 03:32:46 +02:00
|
|
|
sourceRoot = "AirBuddy.app";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/Applications/AirBuddy.app
|
|
|
|
cp -R . $out/Applications/AirBuddy.app
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Take Control of Your Wireless Devices on macOS";
|
|
|
|
longDescription = ''
|
|
|
|
Open your AirPods case next to your Mac to see the status right away, just like it works on your iPhone or iPad.
|
|
|
|
AirBuddy lives in your Menu Bar and can also show battery information for your iPhone, iPad, Apple Watch, Mouse, Keyboard, and more.
|
|
|
|
'';
|
|
|
|
homepage = "https://v2.airbuddy.app";
|
|
|
|
changelog = "https://support.airbuddy.app/articles/airbuddy-2-changelog";
|
|
|
|
license = with licenses; [ unfree ];
|
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
|
|
maintainers = with maintainers; [ stepbrobd ];
|
|
|
|
platforms = [ "aarch64-darwin" "x86_64-darwin" ];
|
|
|
|
};
|
|
|
|
})
|