signalbackup-tools: 20241220 -> 20250106 (#371523)
[NixPkgs.git] / pkgs / by-name / bl / blueutil / package.nix
blobac149c1ce7439521039df3883005e60a1e1f25d0
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   testers,
6   nix-update-script,
7 }:
9 stdenv.mkDerivation (finalAttrs: {
10   pname = "blueutil";
11   version = "2.10.0";
13   src = fetchFromGitHub {
14     owner = "toy";
15     repo = "blueutil";
16     rev = "v${finalAttrs.version}";
17     hash = "sha256-x2khx8Y0PolpMiyrBatT2aHHyacrQVU/02Z4Dz9fBtI=";
18   };
20   env.NIX_CFLAGS_COMPILE = "-Wall -Wextra -Werror -mmacosx-version-min=10.9 -framework Foundation -framework IOBluetooth";
22   installPhase = ''
23     runHook preInstall
25     mkdir -p $out/bin
26     install -m 755 blueutil $out/bin/blueutil
28     runHook postInstall
29   '';
31   passthru = {
32     tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
33     updateScript = nix-update-script { };
34   };
36   meta = {
37     changelog = "https://github.com/toy/blueutil/blob/main/CHANGELOG.md";
38     description = "CLI for bluetooth on OSX";
39     homepage = "https://github.com/toy/blueutil";
40     license = lib.licenses.mit;
41     mainProgram = "blueutil";
42     maintainers = with lib.maintainers; [ azuwis ];
43     platforms = lib.platforms.darwin;
44   };