nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 fetchFromGitHub,
4 cmake,
5 pkg-config,
6 dbus,
7 fmt_9,
8 lib,
9}:
10stdenv.mkDerivation (finalAttrs: {
11 pname = "simpleDBus";
12
13 version = "0.10.4";
14
15 src = fetchFromGitHub {
16 owner = "OpenBluetoothToolbox";
17 repo = "SimpleBLE";
18 rev = "v${finalAttrs.version}";
19 hash = "sha256-KNSrw+NhfHRuvDwkWpWTSnP6LWoSVWAa33fVikb60A8=";
20 };
21
22 outputs = [
23 "out"
24 "dev"
25 ];
26
27 sourceRoot = "${finalAttrs.src.name}/simpledbus";
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++ wrapper for libdbus-1";
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})