about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/sdbus-cpp/default.nix
blob: e354b3141a78324f4a9140808499afc529fa89c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, systemd
, expat
}:

stdenv.mkDerivation rec {
  pname = "sdbus-cpp";
  version = "1.2.0";

  src = fetchFromGitHub {
    owner = "kistler-group";
    repo = "sdbus-cpp";
    rev = "v${version}";
    sha256 = "sha256-EX/XLgqUwIRosLu3Jgtpp42Yt6Tf22Htj9JULoUL7ao=";
  };

  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 ];
  };
}