2022-03-30 09:31:56 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2023-05-24 13:37:59 +00:00
|
|
|
, expat
|
2022-03-30 09:31:56 +00:00
|
|
|
, pkg-config
|
|
|
|
, systemd
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sdbus-cpp";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.5.0";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kistler-group";
|
|
|
|
repo = "sdbus-cpp";
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-oO8QNffwNI245AEPdutOGqxj4qyusZYK3bZWLh2Lcag=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
expat
|
2023-05-24 13:37:59 +00:00
|
|
|
systemd
|
2022-03-30 09:31:56 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_CODE_GEN=ON"
|
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
meta = {
|
2022-03-30 09:31:56 +00:00
|
|
|
homepage = "https://github.com/Kistler-Group/sdbus-cpp";
|
|
|
|
changelog = "https://github.com/Kistler-Group/sdbus-cpp/blob/v${version}/ChangeLog";
|
|
|
|
description = "High-level C++ D-Bus library designed to provide easy-to-use yet powerful API";
|
|
|
|
longDescription = ''
|
2023-05-24 13:37:59 +00:00
|
|
|
sdbus-c++ is a high-level C++ D-Bus library for Linux designed to provide
|
|
|
|
expressive, easy-to-use API in modern C++.
|
|
|
|
It adds another layer of abstraction on top of sd-bus, a nice, fresh C
|
|
|
|
D-Bus implementation by systemd.
|
|
|
|
It's been written primarily as a replacement of dbus-c++, which currently
|
|
|
|
suffers from a number of (unresolved) bugs, concurrency issues and
|
|
|
|
inherent design complexities and limitations.
|
2022-03-30 09:31:56 +00:00
|
|
|
'';
|
2023-05-24 13:37:59 +00:00
|
|
|
license = lib.licenses.lgpl2Only;
|
2024-07-01 15:47:52 +00:00
|
|
|
maintainers = [ ];
|
2023-05-24 13:37:59 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2022-03-30 09:31:56 +00:00
|
|
|
mainProgram = "sdbus-c++-xml2cpp";
|
|
|
|
};
|
|
|
|
}
|