nixpkgs/pkgs/development/libraries/sdbus-cpp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
1.3 KiB
Nix
Raw Normal View History

2022-03-14 20:54:07 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, systemd
, expat
}:
stdenv.mkDerivation rec {
pname = "sdbus-cpp";
2022-08-10 23:22:13 +00:00
version = "1.2.0";
2022-03-14 20:54:07 +00:00
src = fetchFromGitHub {
owner = "kistler-group";
repo = "sdbus-cpp";
rev = "v${version}";
2022-08-10 23:22:13 +00:00
sha256 = "sha256-EX/XLgqUwIRosLu3Jgtpp42Yt6Tf22Htj9JULoUL7ao=";
2022-03-14 20:54:07 +00:00
};
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 ];
};
}