diff options
author | Andrea Ciceri <andrea.ciceri@autistici.org> | 2024-05-30 11:10:05 +0200 |
---|---|---|
committer | Andrea Ciceri <andrea.ciceri@autistici.org> | 2024-05-30 19:07:58 +0200 |
commit | 91c4c979a93f131aca7dd36db77b4b19ffd9468f (patch) | |
tree | 727e600e344aff3342c49effb4978d83d77b6bdd /pkgs/by-name/si | |
parent | 4de99289f6c49034ee234f7aa09d140cc9b8fb92 (diff) |
simpleBluez: init at 0.7.3
Diffstat (limited to 'pkgs/by-name/si')
-rw-r--r-- | pkgs/by-name/si/simpleBluez/package.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/by-name/si/simpleBluez/package.nix b/pkgs/by-name/si/simpleBluez/package.nix new file mode 100644 index 0000000000000..ab5b5f74b072b --- /dev/null +++ b/pkgs/by-name/si/simpleBluez/package.nix @@ -0,0 +1,47 @@ +{ + stdenv, + fetchFromGitHub, + cmake, + pkg-config, + dbus, + fmt_9, + lib, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "simpleBluez"; + + version = "0.7.3"; + + src = fetchFromGitHub { + owner = "OpenBluetoothToolbox"; + repo = "SimpleBLE"; + rev = "v${finalAttrs.version}"; + hash = "sha256-CPBdPnBeQ0c3VjSX0Op6nCHF3w0MdXGULbk1aavr+LM="; + }; + + outputs = [ + "out" + "dev" + ]; + + sourceRoot = "${finalAttrs.src.name}/simplebluez"; + + cmakeFlags = [ "-DLIBFMT_LOCAL_PATH=${fmt_9.src}" ]; + + nativeBuildInputs = [ + cmake + pkg-config + ]; + + buildInputs = [ + dbus + ]; + + meta = with lib; { + description = "C++ abstraction layer for BlueZ over DBus"; + homepage = "https://github.com/OpenBluetoothToolbox/SimpleBLE"; + license = licenses.gpl3Only; + platforms = platforms.linux; + maintainers = with maintainers; [ aciceri ]; + }; +}) |