From 00754f9900393dea0ee9aaf84ffac1cc0706e7f4 Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Wed, 29 Jan 2025 19:14:06 +0400 Subject: [PATCH] influxdb-cxx: fix build --- pkgs/by-name/in/influxdb-cxx/package.nix | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/in/influxdb-cxx/package.nix b/pkgs/by-name/in/influxdb-cxx/package.nix index de1ae626c49b..6f4fff2d55fc 100644 --- a/pkgs/by-name/in/influxdb-cxx/package.nix +++ b/pkgs/by-name/in/influxdb-cxx/package.nix @@ -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; }; })