Skip to content

Commit fc4e2d3

Browse files
committed
influxdb: fix build with Rust 1.83
Signed-off-by: Florian Brandes <[email protected]>
1 parent e3efe0d commit fc4e2d3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

pkgs/servers/nosql/influxdb/default.nix

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,14 @@ let
3434
hash = "sha256-6LOTgbOCfETNTmshyXgtDZf9y4t/2iqRuVPkz9dYPHc=";
3535
})
3636
../influxdb2/fix-unsigned-char.patch
37+
# https://github.com/influxdata/flux/pull/5516
38+
../influxdb2/rust_lifetime.patch
3739
];
40+
# Don't fail on missing code documentation
41+
postPatch = ''
42+
substituteInPlace flux-core/src/lib.rs \
43+
--replace-fail "deny(warnings, missing_docs))]" "deny(warnings))]"
44+
'';
3845
sourceRoot = "${src.name}/libflux";
3946
cargoHash = "sha256-O+t4f4P5291BuyARH6Xf3LejMFEQEBv+qKtyjHRhclA=";
4047
nativeBuildInputs = [ rustPlatform.bindgenHook ];
@@ -95,7 +102,9 @@ buildGoModule rec {
95102

96103
excludedPackages = "test";
97104

98-
passthru.tests = { inherit (nixosTests) influxdb; };
105+
passthru.tests = {
106+
inherit (nixosTests) influxdb;
107+
};
99108

100109
meta = with lib; {
101110
description = "Open-source distributed time series database";

0 commit comments

Comments
 (0)