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