Skip to content

Commit 2e4f09f

Browse files
influxdb: 1.10.7 -> 1.12.0, influxdb2: 2.7.6 -> 2.7.12 (NixOS#410939)
2 parents 6a3064b + 3b72abe commit 2e4f09f

3 files changed

Lines changed: 20 additions & 67 deletions

File tree

pkgs/servers/nosql/influxdb/default.nix

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@
66
pkg-config,
77
rustPlatform,
88
libiconv,
9-
fetchpatch,
109
nixosTests,
1110
}:
1211

1312
let
14-
libflux_version = "0.194.5";
13+
libflux_version = "0.196.1";
1514

1615
# This is copied from influxdb2 with the required flux version
1716
flux = rustPlatform.buildRustPackage rec {
@@ -21,21 +20,11 @@ let
2120
owner = "influxdata";
2221
repo = "flux";
2322
tag = "v${libflux_version}";
24-
hash = "sha256-XHT/+JMu5q1cPjZT2x/OKEPgxFJcnjrQKqn8w9/Mb3s=";
23+
hash = "sha256-935aN2SxfNZvpG90rXuqZ2OTpSGLgiBDbZsBoG0WUvU=";
2524
};
2625
patches = [
27-
# Fix build on Rust 1.78 (included after v0.195.0)
28-
(fetchpatch {
29-
name = "fix-build-on-rust-1.78.patch";
30-
url = "https://github.com/influxdata/flux/commit/68c831c40b396f0274f6a9f97d77707c39970b02.patch";
31-
stripLen = 2;
32-
extraPrefix = "";
33-
excludes = [ ];
34-
hash = "sha256-6LOTgbOCfETNTmshyXgtDZf9y4t/2iqRuVPkz9dYPHc=";
35-
})
26+
# https://github.com/influxdata/flux/pull/5542
3627
../influxdb2/fix-unsigned-char.patch
37-
# https://github.com/influxdata/flux/pull/5516
38-
../influxdb2/rust_lifetime.patch
3928
];
4029
# Don't fail on missing code documentation
4130
postPatch = ''
@@ -44,7 +33,7 @@ let
4433
'';
4534
sourceRoot = "${src.name}/libflux";
4635
useFetchCargoVendor = true;
47-
cargoHash = "sha256-wJVvpjaBUae3FK3lQaQov4t0UEsH86tB8B8bsSFGGBU=";
36+
cargoHash = "sha256-A6j/lb47Ob+Po8r1yvqBXDVP0Hf7cNz8WFZqiVUJj+Y=";
4837
nativeBuildInputs = [ rustPlatform.bindgenHook ];
4938
buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv;
5039
pkgcfg = ''
@@ -60,7 +49,7 @@ let
6049
mkdir -p $out/include $out/pkgconfig
6150
cp -r $NIX_BUILD_TOP/source/libflux/include/influxdata $out/include
6251
substitute $pkgcfgPath $out/pkgconfig/flux.pc \
63-
--replace /out $out
52+
--replace-fail /out $out
6453
''
6554
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
6655
install_name_tool -id $out/lib/libflux.dylib $out/lib/libflux.dylib
@@ -69,16 +58,16 @@ let
6958
in
7059
buildGoModule rec {
7160
pname = "influxdb";
72-
version = "1.10.7";
61+
version = "1.12.0";
7362

7463
src = fetchFromGitHub {
7564
owner = "influxdata";
76-
repo = pname;
65+
repo = "influxdb";
7766
rev = "v${version}";
78-
hash = "sha256-Aibu3yG/D1501Hr2F2qsGvjig14tbEAI+MBfqbxlpg8=";
67+
hash = "sha256-jSv3zzU/jIqALF9mb4gV7zyQvm8pIwJU6Y4ADBlpVOE=";
7968
};
8069

81-
vendorHash = "sha256-AA6uj7PgXjC+IK2ZSwRnYpHS4MFScOROO1BpP+s33IU=";
70+
vendorHash = "sha256-tPw/1vkUTwmRHrnENDG3NJTV6RplI4pCP6GueRT8dbc=";
8271

8372
nativeBuildInputs = [ pkg-config ];
8473

pkgs/servers/nosql/influxdb2/default.nix

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@
1414
}:
1515

1616
let
17-
version = "2.7.6";
18-
ui_version = "OSS-v2.7.1";
19-
libflux_version = "0.194.5";
17+
version = "2.7.12";
18+
ui_version = "OSS-v2.7.12";
19+
libflux_version = "0.196.1";
2020

2121
src = fetchFromGitHub {
2222
owner = "influxdata";
2323
repo = "influxdb";
2424
rev = "v${version}";
25-
hash = "sha256-0gqFUIV0ETdVuVmC+SwoKsO6OkoT/s+qKO1f8fkaZj4=";
25+
hash = "sha256-FwvcKxCozMqJulDDCFDgp7MYJwMq/9XZ6g2q2lIgFc0=";
2626
};
2727

2828
ui = fetchurl {
2929
url = "https://github.com/influxdata/ui/releases/download/${ui_version}/build.tar.gz";
30-
hash = "sha256-0k59SKvt9pFt3WSd5PRUThbfbctt2RYtaxaxoyLICm8=";
30+
hash = "sha256-aC+GYMaxYKkY9GMaeRx22hQ3xi3kfWpaTLC9ajqOaAA=";
3131
};
3232

3333
flux = rustPlatform.buildRustPackage {
@@ -37,21 +37,11 @@ let
3737
owner = "influxdata";
3838
repo = "flux";
3939
rev = "v${libflux_version}";
40-
hash = "sha256-XHT/+JMu5q1cPjZT2x/OKEPgxFJcnjrQKqn8w9/Mb3s=";
40+
hash = "sha256-935aN2SxfNZvpG90rXuqZ2OTpSGLgiBDbZsBoG0WUvU=";
4141
};
4242
patches = [
43-
# Fix build on Rust 1.78 (included after v0.195.0)
44-
(fetchpatch {
45-
name = "fix-build-on-rust-1.78.patch";
46-
url = "https://github.com/influxdata/flux/commit/68c831c40b396f0274f6a9f97d77707c39970b02.patch";
47-
stripLen = 2;
48-
extraPrefix = "";
49-
excludes = [ ];
50-
hash = "sha256-6LOTgbOCfETNTmshyXgtDZf9y4t/2iqRuVPkz9dYPHc=";
51-
})
43+
# https://github.com/influxdata/flux/pull/5542
5244
./fix-unsigned-char.patch
53-
# https://github.com/influxdata/flux/pull/5516
54-
./rust_lifetime.patch
5545
];
5646
# Don't fail on missing code documentation
5747
postPatch = ''
@@ -60,7 +50,7 @@ let
6050
'';
6151
sourceRoot = "${src.name}/libflux";
6252
useFetchCargoVendor = true;
63-
cargoHash = "sha256-wJVvpjaBUae3FK3lQaQov4t0UEsH86tB8B8bsSFGGBU=";
53+
cargoHash = "sha256-A6j/lb47Ob+Po8r1yvqBXDVP0Hf7cNz8WFZqiVUJj+Y=";
6454
nativeBuildInputs = [ rustPlatform.bindgenHook ];
6555
buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv;
6656
pkgcfg = ''
@@ -76,7 +66,7 @@ let
7666
mkdir -p $out/include $out/pkgconfig
7767
cp -r $NIX_BUILD_TOP/source/libflux/include/influxdata $out/include
7868
substitute $pkgcfgPath $out/pkgconfig/flux.pc \
79-
--replace /out $out
69+
--replace-fail /out $out
8070
''
8171
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
8272
install_name_tool -id $out/lib/libflux.dylib $out/lib/libflux.dylib
@@ -94,7 +84,7 @@ buildGoModule {
9484
perl
9585
];
9686

97-
vendorHash = "sha256-3Vf8BCrOwliXrH+gmZ4RJ1YBEbqL0Szx2prW3ie9CNg=";
87+
vendorHash = "sha256-B4w8+UaewujKVr98MFhRh2c6UMOdB+TE/mOT+cy2pHk=";
9888
subPackages = [
9989
"cmd/influxd"
10090
"cmd/telemetryd"
@@ -105,7 +95,7 @@ buildGoModule {
10595
postPatch = ''
10696
# use go-bindata from environment
10797
substituteInPlace static/static.go \
108-
--replace 'go run github.com/kevinburke/go-bindata/' ""
98+
--replace-fail 'go run github.com/kevinburke/go-bindata/' ""
10999
'';
110100

111101
# Check that libflux and the UI are at the right version, and embed

pkgs/servers/nosql/influxdb2/rust_lifetime.patch

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)