influxdb-cxx: fix build

This commit is contained in:
Nikolay Korotkiy 2025-01-29 19:14:06 +04:00
parent e43d648ac1
commit 00754f9900
No known key found for this signature in database
GPG Key ID: D1DE6D7F693663A5

View File

@ -17,12 +17,19 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub {
owner = "offa";
repo = "influxdb-cxx";
rev = "v${finalAttrs.version}";
tag = "v${finalAttrs.version}";
hash = "sha256-UlCmaw2mWAL5PuNXXGQa602Qxlf5BCr7ZIiShffG74o=";
};
patches = [
(fetchpatch {
url = "https://github.com/offa/influxdb-cxx/commit/c4b0d5a4df153232be542fbb073e857ff69ec78c.patch";
hash = "sha256-zPE7giDjWyQbGJxdZh2CEbAjouHUcAbQEzaOfCUSkfU=";
})
];
postPatch = ''
substituteInPlace CMakeLists.txt --replace "-Werror" ""
substituteInPlace CMakeLists.txt --replace-warn "-Werror" ""
'';
nativeBuildInputs = [ cmake ];
@ -44,11 +51,11 @@ stdenv.mkDerivation (finalAttrs: {
doCheck = true;
meta = with lib; {
meta = {
description = "InfluxDB C++ client library";
homepage = "https://github.com/offa/influxdb-cxx";
license = licenses.mit;
maintainers = with maintainers; [ sikmir ];
platforms = platforms.unix;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sikmir ];
platforms = lib.platforms.unix;
};
})