blueutil: init at 2.9.1
This commit is contained in:
parent
332a28b17a
commit
b1bffe2fe8
1 changed files with 45 additions and 0 deletions
45
pkgs/by-name/bl/blueutil/package.nix
Normal file
45
pkgs/by-name/bl/blueutil/package.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, darwin
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (darwin.apple_sdk.frameworks) Foundation IOBluetooth;
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "blueutil";
|
||||
version = "2.9.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "toy";
|
||||
repo = "blueutil";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-dxsgMwgBImMxMMD+atgGakX3J9YMO2g3Yjl5zOJ8PW0=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
Foundation
|
||||
IOBluetooth
|
||||
];
|
||||
|
||||
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
|
||||
'';
|
||||
|
||||
meta = {
|
||||
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;
|
||||
};
|
||||
})
|
Loading…
Reference in a new issue