From fc4e2d36f29655238a470e43c909ead69bc11931 Mon Sep 17 00:00:00 2001 From: Florian Brandes Date: Wed, 25 Dec 2024 14:00:32 +0100 Subject: [PATCH] influxdb: fix build with Rust 1.83 Signed-off-by: Florian Brandes --- pkgs/servers/nosql/influxdb/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/nosql/influxdb/default.nix b/pkgs/servers/nosql/influxdb/default.nix index 030590dabe0c..efd6a31d3baa 100644 --- a/pkgs/servers/nosql/influxdb/default.nix +++ b/pkgs/servers/nosql/influxdb/default.nix @@ -34,7 +34,14 @@ let hash = "sha256-6LOTgbOCfETNTmshyXgtDZf9y4t/2iqRuVPkz9dYPHc="; }) ../influxdb2/fix-unsigned-char.patch + # https://github.com/influxdata/flux/pull/5516 + ../influxdb2/rust_lifetime.patch ]; + # Don't fail on missing code documentation + postPatch = '' + substituteInPlace flux-core/src/lib.rs \ + --replace-fail "deny(warnings, missing_docs))]" "deny(warnings))]" + ''; sourceRoot = "${src.name}/libflux"; cargoHash = "sha256-O+t4f4P5291BuyARH6Xf3LejMFEQEBv+qKtyjHRhclA="; nativeBuildInputs = [ rustPlatform.bindgenHook ]; @@ -95,7 +102,9 @@ buildGoModule rec { excludedPackages = "test"; - passthru.tests = { inherit (nixosTests) influxdb; }; + passthru.tests = { + inherit (nixosTests) influxdb; + }; meta = with lib; { description = "Open-source distributed time series database";