diff options
author | StepBroBD <Hi@StepBroBD.com> | 2023-06-29 19:32:46 -0600 |
---|---|---|
committer | StepBroBD <Hi@StepBroBD.com> | 2023-06-30 10:09:15 -0600 |
commit | e0e729b300eb19e30ab8a80f2eddfae1692e2a82 (patch) | |
tree | deea0b414697856b93aa7f4b5bfed773dea0c271 /pkgs/os-specific/darwin | |
parent | d7a27f31892896029919f71f1d2353bc5147c433 (diff) |
airbuddy: init at 2.6.3
Co-authored-by: OTABI Tomoya <tomoya.otabi@gmail.com> Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
Diffstat (limited to 'pkgs/os-specific/darwin')
-rw-r--r-- | pkgs/os-specific/darwin/airbuddy/default.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/os-specific/darwin/airbuddy/default.nix b/pkgs/os-specific/darwin/airbuddy/default.nix new file mode 100644 index 0000000000000..9e4865d65b797 --- /dev/null +++ b/pkgs/os-specific/darwin/airbuddy/default.nix @@ -0,0 +1,48 @@ +{ lib +, stdenvNoCC +, fetchurl +, undmg +}: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "airbuddy"; + version = "2.6.3"; + + src = fetchurl { + name = "AirBuddy.dmg"; + url = "https://download.airbuddy.app/WebDownload/AirBuddy_v${finalAttrs.version}.dmg"; + hash = "sha256-q/Mbkm90ptIkdTLV2KDT9CM2Hsxnkway5Fw0F6d7Tqc="; + }; + + dontPatch = true; + dontConfigure = true; + dontBuild = true; + dontFixup = true; + + nativeBuildInputs = [ undmg ]; + + 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" ]; + }; +}) |