11 inherit (darwin.apple_sdk.frameworks) Foundation IOBluetooth;
13 stdenv.mkDerivation (finalAttrs: {
17 src = fetchFromGitHub {
20 rev = "v${finalAttrs.version}";
21 hash = "sha256-x2khx8Y0PolpMiyrBatT2aHHyacrQVU/02Z4Dz9fBtI=";
29 env.NIX_CFLAGS_COMPILE = "-Wall -Wextra -Werror -mmacosx-version-min=10.9 -framework Foundation -framework IOBluetooth";
35 install -m 755 blueutil $out/bin/blueutil
41 tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
42 updateScript = nix-update-script { };
46 changelog = "https://github.com/toy/blueutil/blob/main/CHANGELOG.md";
47 description = "CLI for bluetooth on OSX";
48 homepage = "https://github.com/toy/blueutil";
49 license = lib.licenses.mit;
50 mainProgram = "blueutil";
51 maintainers = with lib.maintainers; [ azuwis ];
52 platforms = lib.platforms.darwin;