mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
sdbus-cpp_2: init at 2.0.0
This commit is contained in:
parent
50db3b6fbb
commit
7b01b810a6
@ -1,21 +1,27 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, expat
|
||||
, pkg-config
|
||||
, systemd
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
expat,
|
||||
pkg-config,
|
||||
systemdLibs,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
let
|
||||
generic =
|
||||
{
|
||||
version,
|
||||
rev ? "v${version}",
|
||||
hash,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "sdbus-cpp";
|
||||
version = "1.5.0";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kistler-group";
|
||||
repo = "sdbus-cpp";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-oO8QNffwNI245AEPdutOGqxj4qyusZYK3bZWLh2Lcag=";
|
||||
inherit rev hash;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@ -25,11 +31,11 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [
|
||||
expat
|
||||
systemd
|
||||
systemdLibs
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_CODE_GEN=ON"
|
||||
(lib.cmakeBool "BUILD_CODE_GEN" true)
|
||||
];
|
||||
|
||||
meta = {
|
||||
@ -50,4 +56,16 @@ stdenv.mkDerivation rec {
|
||||
platforms = lib.platforms.linux;
|
||||
mainProgram = "sdbus-c++-xml2cpp";
|
||||
};
|
||||
});
|
||||
in
|
||||
{
|
||||
sdbus-cpp = generic {
|
||||
version = "1.5.0";
|
||||
hash = "sha256-oO8QNffwNI245AEPdutOGqxj4qyusZYK3bZWLh2Lcag=";
|
||||
};
|
||||
|
||||
sdbus-cpp_2 = generic {
|
||||
version = "2.0.0";
|
||||
hash = "sha256-W8V5FRhV3jtERMFrZ4gf30OpIQLYoj2yYGpnYOmH2+g=";
|
||||
};
|
||||
}
|
||||
|
@ -1906,7 +1906,7 @@ with pkgs;
|
||||
|
||||
scarab = callPackage ../tools/games/scarab { };
|
||||
|
||||
sdbus-cpp = callPackage ../development/libraries/sdbus-cpp { };
|
||||
inherit (callPackage ../development/libraries/sdbus-cpp { }) sdbus-cpp sdbus-cpp_2;
|
||||
|
||||
sdlookup = callPackage ../tools/security/sdlookup { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user