Files
nixpkgs/pkgs/by-name/bl/blueutil/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

46 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
testers,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "blueutil";
version = "2.12.0";
src = fetchFromGitHub {
owner = "toy";
repo = "blueutil";
rev = "v${finalAttrs.version}";
hash = "sha256-JwX3NHXbGgEj+ZCyu9gWp2TCihokaAw5oHCrlmpy6HA=";
};
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;
};
})