sdbus-cpp_2: init at 2.0.0

authored by

Lin Xianyi and committed by
John Titor
7b01b810 50db3b6f

+63 -45
+62 -44
pkgs/development/libraries/sdbus-cpp/default.nix
··· 1 - { lib 2 - , stdenv 3 - , fetchFromGitHub 4 - , cmake 5 - , expat 6 - , pkg-config 7 - , systemd 8 }: 9 10 - stdenv.mkDerivation rec { 11 - pname = "sdbus-cpp"; 12 - version = "1.5.0"; 13 14 - src = fetchFromGitHub { 15 - owner = "kistler-group"; 16 - repo = "sdbus-cpp"; 17 - rev = "v${version}"; 18 - hash = "sha256-oO8QNffwNI245AEPdutOGqxj4qyusZYK3bZWLh2Lcag="; 19 - }; 20 21 - nativeBuildInputs = [ 22 - cmake 23 - pkg-config 24 - ]; 25 26 - buildInputs = [ 27 - expat 28 - systemd 29 - ]; 30 31 - cmakeFlags = [ 32 - "-DBUILD_CODE_GEN=ON" 33 - ]; 34 35 - meta = { 36 - homepage = "https://github.com/Kistler-Group/sdbus-cpp"; 37 - changelog = "https://github.com/Kistler-Group/sdbus-cpp/blob/v${version}/ChangeLog"; 38 - description = "High-level C++ D-Bus library designed to provide easy-to-use yet powerful API"; 39 - longDescription = '' 40 - sdbus-c++ is a high-level C++ D-Bus library for Linux designed to provide 41 - expressive, easy-to-use API in modern C++. 42 - It adds another layer of abstraction on top of sd-bus, a nice, fresh C 43 - D-Bus implementation by systemd. 44 - It's been written primarily as a replacement of dbus-c++, which currently 45 - suffers from a number of (unresolved) bugs, concurrency issues and 46 - inherent design complexities and limitations. 47 - ''; 48 - license = lib.licenses.lgpl2Only; 49 - maintainers = [ ]; 50 - platforms = lib.platforms.linux; 51 - mainProgram = "sdbus-c++-xml2cpp"; 52 }; 53 }
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + cmake, 6 + expat, 7 + pkg-config, 8 + systemdLibs, 9 }: 10 + let 11 + generic = 12 + { 13 + version, 14 + rev ? "v${version}", 15 + hash, 16 + }: 17 + stdenv.mkDerivation (finalAttrs: { 18 + pname = "sdbus-cpp"; 19 + inherit version; 20 21 + src = fetchFromGitHub { 22 + owner = "kistler-group"; 23 + repo = "sdbus-cpp"; 24 + inherit rev hash; 25 + }; 26 27 + nativeBuildInputs = [ 28 + cmake 29 + pkg-config 30 + ]; 31 32 + buildInputs = [ 33 + expat 34 + systemdLibs 35 + ]; 36 37 + cmakeFlags = [ 38 + (lib.cmakeBool "BUILD_CODE_GEN" true) 39 + ]; 40 41 + meta = { 42 + homepage = "https://github.com/Kistler-Group/sdbus-cpp"; 43 + changelog = "https://github.com/Kistler-Group/sdbus-cpp/blob/v${version}/ChangeLog"; 44 + description = "High-level C++ D-Bus library designed to provide easy-to-use yet powerful API"; 45 + longDescription = '' 46 + sdbus-c++ is a high-level C++ D-Bus library for Linux designed to provide 47 + expressive, easy-to-use API in modern C++. 48 + It adds another layer of abstraction on top of sd-bus, a nice, fresh C 49 + D-Bus implementation by systemd. 50 + It's been written primarily as a replacement of dbus-c++, which currently 51 + suffers from a number of (unresolved) bugs, concurrency issues and 52 + inherent design complexities and limitations. 53 + ''; 54 + license = lib.licenses.lgpl2Only; 55 + maintainers = [ ]; 56 + platforms = lib.platforms.linux; 57 + mainProgram = "sdbus-c++-xml2cpp"; 58 + }; 59 + }); 60 + in 61 + { 62 + sdbus-cpp = generic { 63 + version = "1.5.0"; 64 + hash = "sha256-oO8QNffwNI245AEPdutOGqxj4qyusZYK3bZWLh2Lcag="; 65 + }; 66 67 + sdbus-cpp_2 = generic { 68 + version = "2.0.0"; 69 + hash = "sha256-W8V5FRhV3jtERMFrZ4gf30OpIQLYoj2yYGpnYOmH2+g="; 70 }; 71 }
+1 -1
pkgs/top-level/all-packages.nix
··· 1906 1907 scarab = callPackage ../tools/games/scarab { }; 1908 1909 - sdbus-cpp = callPackage ../development/libraries/sdbus-cpp { }; 1910 1911 sdlookup = callPackage ../tools/security/sdlookup { }; 1912
··· 1906 1907 scarab = callPackage ../tools/games/scarab { }; 1908 1909 + inherit (callPackage ../development/libraries/sdbus-cpp { }) sdbus-cpp sdbus-cpp_2; 1910 1911 sdlookup = callPackage ../tools/security/sdlookup { }; 1912