mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
Merge pull request #315844 from aciceri/zmkbatx
simpleBluez: init at 0.7.3, simpleDBus: init at 0.7.3, zmkBATx: init at 1.0.1
This commit is contained in:
commit
55d72a7bfc
47
pkgs/by-name/si/simpleBluez/package.nix
Normal file
47
pkgs/by-name/si/simpleBluez/package.nix
Normal file
@ -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 ];
|
||||
};
|
||||
})
|
47
pkgs/by-name/si/simpleDBus/package.nix
Normal file
47
pkgs/by-name/si/simpleDBus/package.nix
Normal file
@ -0,0 +1,47 @@
|
||||
{
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
pkg-config,
|
||||
dbus,
|
||||
fmt_9,
|
||||
lib,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "simpleDBus";
|
||||
|
||||
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}/simpledbus";
|
||||
|
||||
cmakeFlags = [ "-DLIBFMT_LOCAL_PATH=${fmt_9.src}" ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
dbus
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "C++ wrapper for libdbus-1";
|
||||
homepage = "https://github.com/OpenBluetoothToolbox/SimpleBLE";
|
||||
license = licenses.gpl3Only;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ aciceri ];
|
||||
};
|
||||
})
|
51
pkgs/by-name/zm/zmkBATx/package.nix
Normal file
51
pkgs/by-name/zm/zmkBATx/package.nix
Normal file
@ -0,0 +1,51 @@
|
||||
{
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
qt6,
|
||||
pkg-config,
|
||||
dbus,
|
||||
simpleBluez,
|
||||
simpleDBus,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "zmkBATx";
|
||||
|
||||
version = "1.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mh4x0f";
|
||||
repo = "zmkBATx";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-xbiwRHVTuaZDH3RZlMK2CpKBThtS8g6q5r3C+OccDZg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
qt6.wrapQtAppsHook
|
||||
pkg-config
|
||||
qt6.qmake
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
qt6.qtbase
|
||||
qt6.qtconnectivity
|
||||
dbus.lib
|
||||
simpleBluez
|
||||
simpleDBus
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace zmkBATx.pro --replace-fail "/usr/include/dbus-1.0" "${dbus.dev}/include/dbus-1.0"
|
||||
substituteInPlace zmkBATx.pro --replace-fail "/usr/lib/x86_64-linux-gnu/dbus-1.0/include" "${dbus.lib}/lib/dbus-1.0/include"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Battery monitoring for ZMK split keyboards";
|
||||
longDescription = "Opensource tool for peripheral battery monitoring zmk split keyboard over BLE for linux.";
|
||||
homepage = "https://github.com/mh4x0f/zmkBATx";
|
||||
license = licenses.mit;
|
||||
mainProgram = "zmkbatx";
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ aciceri ];
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user