about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorIvar Scholten <ivar.scholten@protonmail.com>2022-03-14 21:54:07 +0100
committerIvar Scholten <ivar.scholten@protonmail.com>2022-03-14 21:54:07 +0100
commit541064d899ce51d291c0aca27834b740ab21ea4b (patch)
tree340ca704a1bc7258d051503c69a7b113ca931077 /pkgs
parent936d56766575a4815bcc9cb267b75c57e2f3292b (diff)
downloadnixlib-541064d899ce51d291c0aca27834b740ab21ea4b.tar
nixlib-541064d899ce51d291c0aca27834b740ab21ea4b.tar.gz
nixlib-541064d899ce51d291c0aca27834b740ab21ea4b.tar.bz2
nixlib-541064d899ce51d291c0aca27834b740ab21ea4b.tar.lz
nixlib-541064d899ce51d291c0aca27834b740ab21ea4b.tar.xz
nixlib-541064d899ce51d291c0aca27834b740ab21ea4b.tar.zst
nixlib-541064d899ce51d291c0aca27834b740ab21ea4b.zip
sndbus-cpp: init at 1.1.0
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/sdbus-cpp/default.nix50
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/development/libraries/sdbus-cpp/default.nix b/pkgs/development/libraries/sdbus-cpp/default.nix
new file mode 100644
index 000000000000..d665a6d94a5a
--- /dev/null
+++ b/pkgs/development/libraries/sdbus-cpp/default.nix
@@ -0,0 +1,50 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, cmake
+, pkg-config
+, systemd
+, expat
+}:
+
+stdenv.mkDerivation rec {
+  pname = "sdbus-cpp";
+  version = "1.1.0";
+
+  src = fetchFromGitHub {
+    owner = "kistler-group";
+    repo = "sdbus-cpp";
+    rev = "v${version}";
+    sha256 = "sha256-AjaZ6YmMlnN0jAcUBkft01XHkrze0nSr3dUMechsLrQ=";
+  };
+
+  nativeBuildInputs = [
+    cmake
+    pkg-config
+  ];
+
+  buildInputs = [
+    systemd
+    expat
+  ];
+
+  cmakeFlags = [
+    "-DBUILD_CODE_GEN=ON"
+  ];
+
+  meta = with lib; {
+    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 = ''
+      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.
+    '';
+    mainProgram = "sdbus-c++-xml2cpp";
+    license = licenses.lgpl2Only;
+    platforms = platforms.linux;
+    maintainers = [ maintainers.ivar ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 071bf333e6f5..d966b8d9cb58 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1100,6 +1100,8 @@ with pkgs;
 
   redfang = callPackage ../tools/networking/redfang { };
 
+  sdbus-cpp = callPackage ../development/libraries/sdbus-cpp { };
+
   sdlookup = callPackage ../tools/security/sdlookup { };
 
   sx-go = callPackage ../tools/security/sx-go { };