Files
nixpkgs/pkgs/by-name/bl/blueutil/package.nix
Emily 7f3a48d8db Revert "blueutil: fix build by linking with lld"
The ld64 issue has been fixed.

This reverts commit 7168ff819b.
2026-07-15 03:26:25 +01:00

46 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
testers,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "blueutil";
version = "2.13.0";
src = fetchFromGitHub {
owner = "toy";
repo = "blueutil";
rev = "v${finalAttrs.version}";
hash = "sha256-Qw5c9dp7wpuOcQSLsg1pfJ+NbrEtme2o6nKD3Ba3A3M=";
};
env.NIX_CFLAGS_COMPILE = "-Wall -Wextra -Werror -mmacosx-version-min=10.9 -framework Foundation -framework IOBluetooth";
installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -m 755 blueutil $out/bin/blueutil
runHook postInstall
'';
passthru = {
tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
updateScript = nix-update-script { };
};
meta = {
changelog = "https://github.com/toy/blueutil/blob/main/CHANGELOG.md";
description = "CLI for bluetooth on OSX";
homepage = "https://github.com/toy/blueutil";
license = lib.licenses.mit;
mainProgram = "blueutil";
maintainers = with lib.maintainers; [ azuwis ];
platforms = lib.platforms.darwin;
};
})