influxdb: 1.10.7 -> 1.12.0, influxdb2: 2.7.6 -> 2.7.12 (#410939)

authored by Sandro and committed by GitHub 2e4f09f2 6a3064bb

+20 -67
+9 -20
pkgs/servers/nosql/influxdb/default.nix
··· 6 6 pkg-config, 7 7 rustPlatform, 8 8 libiconv, 9 - fetchpatch, 10 9 nixosTests, 11 10 }: 12 11 13 12 let 14 - libflux_version = "0.194.5"; 13 + libflux_version = "0.196.1"; 15 14 16 15 # This is copied from influxdb2 with the required flux version 17 16 flux = rustPlatform.buildRustPackage rec { ··· 21 20 owner = "influxdata"; 22 21 repo = "flux"; 23 22 tag = "v${libflux_version}"; 24 - hash = "sha256-XHT/+JMu5q1cPjZT2x/OKEPgxFJcnjrQKqn8w9/Mb3s="; 23 + hash = "sha256-935aN2SxfNZvpG90rXuqZ2OTpSGLgiBDbZsBoG0WUvU="; 25 24 }; 26 25 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 36 27 ../influxdb2/fix-unsigned-char.patch 37 - # https://github.com/influxdata/flux/pull/5516 38 - ../influxdb2/rust_lifetime.patch 39 28 ]; 40 29 # Don't fail on missing code documentation 41 30 postPatch = '' ··· 44 33 ''; 45 34 sourceRoot = "${src.name}/libflux"; 46 35 useFetchCargoVendor = true; 47 - cargoHash = "sha256-wJVvpjaBUae3FK3lQaQov4t0UEsH86tB8B8bsSFGGBU="; 36 + cargoHash = "sha256-A6j/lb47Ob+Po8r1yvqBXDVP0Hf7cNz8WFZqiVUJj+Y="; 48 37 nativeBuildInputs = [ rustPlatform.bindgenHook ]; 49 38 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv; 50 39 pkgcfg = '' ··· 60 49 mkdir -p $out/include $out/pkgconfig 61 50 cp -r $NIX_BUILD_TOP/source/libflux/include/influxdata $out/include 62 51 substitute $pkgcfgPath $out/pkgconfig/flux.pc \ 63 - --replace /out $out 52 + --replace-fail /out $out 64 53 '' 65 54 + lib.optionalString stdenv.hostPlatform.isDarwin '' 66 55 install_name_tool -id $out/lib/libflux.dylib $out/lib/libflux.dylib ··· 69 58 in 70 59 buildGoModule rec { 71 60 pname = "influxdb"; 72 - version = "1.10.7"; 61 + version = "1.12.0"; 73 62 74 63 src = fetchFromGitHub { 75 64 owner = "influxdata"; 76 - repo = pname; 65 + repo = "influxdb"; 77 66 rev = "v${version}"; 78 - hash = "sha256-Aibu3yG/D1501Hr2F2qsGvjig14tbEAI+MBfqbxlpg8="; 67 + hash = "sha256-jSv3zzU/jIqALF9mb4gV7zyQvm8pIwJU6Y4ADBlpVOE="; 79 68 }; 80 69 81 - vendorHash = "sha256-AA6uj7PgXjC+IK2ZSwRnYpHS4MFScOROO1BpP+s33IU="; 70 + vendorHash = "sha256-tPw/1vkUTwmRHrnENDG3NJTV6RplI4pCP6GueRT8dbc="; 82 71 83 72 nativeBuildInputs = [ pkg-config ]; 84 73
+11 -21
pkgs/servers/nosql/influxdb2/default.nix
··· 14 14 }: 15 15 16 16 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"; 20 20 21 21 src = fetchFromGitHub { 22 22 owner = "influxdata"; 23 23 repo = "influxdb"; 24 24 rev = "v${version}"; 25 - hash = "sha256-0gqFUIV0ETdVuVmC+SwoKsO6OkoT/s+qKO1f8fkaZj4="; 25 + hash = "sha256-FwvcKxCozMqJulDDCFDgp7MYJwMq/9XZ6g2q2lIgFc0="; 26 26 }; 27 27 28 28 ui = fetchurl { 29 29 url = "https://github.com/influxdata/ui/releases/download/${ui_version}/build.tar.gz"; 30 - hash = "sha256-0k59SKvt9pFt3WSd5PRUThbfbctt2RYtaxaxoyLICm8="; 30 + hash = "sha256-aC+GYMaxYKkY9GMaeRx22hQ3xi3kfWpaTLC9ajqOaAA="; 31 31 }; 32 32 33 33 flux = rustPlatform.buildRustPackage { ··· 37 37 owner = "influxdata"; 38 38 repo = "flux"; 39 39 rev = "v${libflux_version}"; 40 - hash = "sha256-XHT/+JMu5q1cPjZT2x/OKEPgxFJcnjrQKqn8w9/Mb3s="; 40 + hash = "sha256-935aN2SxfNZvpG90rXuqZ2OTpSGLgiBDbZsBoG0WUvU="; 41 41 }; 42 42 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 52 44 ./fix-unsigned-char.patch 53 - # https://github.com/influxdata/flux/pull/5516 54 - ./rust_lifetime.patch 55 45 ]; 56 46 # Don't fail on missing code documentation 57 47 postPatch = '' ··· 60 50 ''; 61 51 sourceRoot = "${src.name}/libflux"; 62 52 useFetchCargoVendor = true; 63 - cargoHash = "sha256-wJVvpjaBUae3FK3lQaQov4t0UEsH86tB8B8bsSFGGBU="; 53 + cargoHash = "sha256-A6j/lb47Ob+Po8r1yvqBXDVP0Hf7cNz8WFZqiVUJj+Y="; 64 54 nativeBuildInputs = [ rustPlatform.bindgenHook ]; 65 55 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv; 66 56 pkgcfg = '' ··· 76 66 mkdir -p $out/include $out/pkgconfig 77 67 cp -r $NIX_BUILD_TOP/source/libflux/include/influxdata $out/include 78 68 substitute $pkgcfgPath $out/pkgconfig/flux.pc \ 79 - --replace /out $out 69 + --replace-fail /out $out 80 70 '' 81 71 + lib.optionalString stdenv.hostPlatform.isDarwin '' 82 72 install_name_tool -id $out/lib/libflux.dylib $out/lib/libflux.dylib ··· 94 84 perl 95 85 ]; 96 86 97 - vendorHash = "sha256-3Vf8BCrOwliXrH+gmZ4RJ1YBEbqL0Szx2prW3ie9CNg="; 87 + vendorHash = "sha256-B4w8+UaewujKVr98MFhRh2c6UMOdB+TE/mOT+cy2pHk="; 98 88 subPackages = [ 99 89 "cmd/influxd" 100 90 "cmd/telemetryd" ··· 105 95 postPatch = '' 106 96 # use go-bindata from environment 107 97 substituteInPlace static/static.go \ 108 - --replace 'go run github.com/kevinburke/go-bindata/' "" 98 + --replace-fail 'go run github.com/kevinburke/go-bindata/' "" 109 99 ''; 110 100 111 101 # Check that libflux and the UI are at the right version, and embed
-26
pkgs/servers/nosql/influxdb2/rust_lifetime.patch
··· 1 - diff --git a/flux-core/src/ast/walk/mod.rs b/flux-core/src/ast/walk/mod.rs 2 - index 90f70ba6f7..a6966827e8 100644 3 - --- a/flux-core/src/ast/walk/mod.rs 4 - +++ b/flux-core/src/ast/walk/mod.rs 5 - @@ -180,7 +180,7 @@ impl<'a> Node<'a> { 6 - 7 - impl<'a> Node<'a> { 8 - #[allow(missing_docs)] 9 - - pub fn from_expr(expr: &'a Expression) -> Node { 10 - + pub fn from_expr(expr: &'a Expression) -> Node<'a> { 11 - match expr { 12 - Expression::Identifier(e) => Node::Identifier(e), 13 - Expression::Array(e) => Node::ArrayExpr(e), 14 - diff --git a/flux-core/src/parser/mod.rs b/flux-core/src/parser/mod.rs 15 - index ac7d4b9a72..561c3a0ff6 100644 16 - --- a/flux-core/src/parser/mod.rs 17 - +++ b/flux-core/src/parser/mod.rs 18 - @@ -41,7 +41,7 @@ pub struct Parser<'input> { 19 - 20 - impl<'input> Parser<'input> { 21 - /// Instantiates a new parser with the given string as input. 22 - - pub fn new(src: &'input str) -> Parser { 23 - + pub fn new(src: &'input str) -> Parser<'input> { 24 - let s = Scanner::new(src); 25 - Parser { 26 - s,