nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 47 lines 873 B view raw
1{ 2 stdenv, 3 fetchFromGitHub, 4 cmake, 5 pkg-config, 6 dbus, 7 fmt_9, 8 lib, 9}: 10stdenv.mkDerivation (finalAttrs: { 11 pname = "simpleBluez"; 12 13 version = "0.7.3"; 14 15 src = fetchFromGitHub { 16 owner = "OpenBluetoothToolbox"; 17 repo = "SimpleBLE"; 18 rev = "v${finalAttrs.version}"; 19 hash = "sha256-CPBdPnBeQ0c3VjSX0Op6nCHF3w0MdXGULbk1aavr+LM="; 20 }; 21 22 outputs = [ 23 "out" 24 "dev" 25 ]; 26 27 sourceRoot = "${finalAttrs.src.name}/simplebluez"; 28 29 cmakeFlags = [ "-DLIBFMT_LOCAL_PATH=${fmt_9.src}" ]; 30 31 nativeBuildInputs = [ 32 cmake 33 pkg-config 34 ]; 35 36 buildInputs = [ 37 dbus 38 ]; 39 40 meta = { 41 description = "C++ abstraction layer for BlueZ over DBus"; 42 homepage = "https://github.com/OpenBluetoothToolbox/SimpleBLE"; 43 license = lib.licenses.gpl3Only; 44 platforms = lib.platforms.linux; 45 maintainers = with lib.maintainers; [ aciceri ]; 46 }; 47})