mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00
influxdb2: 2.5.1 -> 2.7.1
https://github.com/influxdata/influxdb/releases/tag/v2.6.0 https://github.com/influxdata/influxdb/releases/tag/v2.6.1 https://github.com/influxdata/influxdb/releases/tag/v2.7.0 https://github.com/influxdata/influxdb/releases/tag/v2.7.1
This commit is contained in:
parent
964006733a
commit
ca5e5519f0
@ -1,6 +1,7 @@
|
|||||||
{ buildGoModule
|
{ buildGoModule
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchurl
|
, fetchurl
|
||||||
|
, fetchpatch
|
||||||
, go-bindata
|
, go-bindata
|
||||||
, lib
|
, lib
|
||||||
, perl
|
, perl
|
||||||
@ -12,23 +13,20 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "2.5.1";
|
version = "2.7.1";
|
||||||
# Despite the name, this is not a rolling release. This is the
|
ui_version = "OSS-v${version}";
|
||||||
# version of the UI assets for 2.5.1, as specified in
|
libflux_version = "0.193.0";
|
||||||
# scripts/fetch-ui-assets.sh in the 2.5.1 tag of influxdb.
|
|
||||||
ui_version = "OSS-2022-09-16";
|
|
||||||
libflux_version = "0.188.1";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "influxdata";
|
owner = "influxdata";
|
||||||
repo = "influxdb";
|
repo = "influxdb";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-AKyuFBja06BuWYliqIGKOb4PIc5G8S9S+cf/dLrEATY=";
|
hash = "sha256-JWu4V2k8ItbzBa421EtzgMVlDznoDdGjIhfDSaZ0j6c=";
|
||||||
};
|
};
|
||||||
|
|
||||||
ui = fetchurl {
|
ui = fetchurl {
|
||||||
url = "https://github.com/influxdata/ui/releases/download/${ui_version}/build.tar.gz";
|
url = "https://github.com/influxdata/ui/releases/download/${ui_version}/build.tar.gz";
|
||||||
sha256 = "sha256-YKDp1jLyo4n+YTeMaWl8dhN4Lr3H8FXV7stJ3p3zFe8=";
|
hash = "sha256-0k59SKvt9pFt3WSd5PRUThbfbctt2RYtaxaxoyLICm8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
flux = rustPlatform.buildRustPackage {
|
flux = rustPlatform.buildRustPackage {
|
||||||
@ -38,10 +36,21 @@ let
|
|||||||
owner = "influxdata";
|
owner = "influxdata";
|
||||||
repo = "flux";
|
repo = "flux";
|
||||||
rev = "v${libflux_version}";
|
rev = "v${libflux_version}";
|
||||||
sha256 = "sha256-Xmh7V/o1Gje62kcnTeB9h/fySljhfu+tjbyvryvIGRc=";
|
hash = "sha256-gx6vnGOFu35wasLl7X/73eDsE0/50cAzjmBjZ+H2Ne4=";
|
||||||
};
|
};
|
||||||
|
patches = [
|
||||||
|
# Fix build with recent rust versions
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/influxdata/flux/commit/6dc8054cfeec4b65b5c7ae786d633240868b8589.patch";
|
||||||
|
stripLen = 2;
|
||||||
|
extraPrefix = "";
|
||||||
|
excludes = [ "rust-toolchain.toml" ];
|
||||||
|
hash = "sha256-w3z+Z26Xhy9TNICyNhc8XiWNSpdLA23ADI4K/AOMYhg=";
|
||||||
|
})
|
||||||
|
./no-deny-warnings.patch
|
||||||
|
];
|
||||||
sourceRoot = "${src.name}/libflux";
|
sourceRoot = "${src.name}/libflux";
|
||||||
cargoSha256 = "sha256-9rPW0lgi3lXJARa1KXgSY8LVJsoFjppok5ODGlqYeYw=";
|
cargoSha256 = "sha256-MoI5nxLGA/3pduZ+vgmSG3lm3Nx58SP+6WXQl2pX9Lc=";
|
||||||
nativeBuildInputs = [ rustPlatform.bindgenHook ];
|
nativeBuildInputs = [ rustPlatform.bindgenHook ];
|
||||||
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
||||||
pkgcfg = ''
|
pkgcfg = ''
|
||||||
@ -69,7 +78,7 @@ in buildGoModule {
|
|||||||
|
|
||||||
nativeBuildInputs = [ go-bindata pkg-config perl ];
|
nativeBuildInputs = [ go-bindata pkg-config perl ];
|
||||||
|
|
||||||
vendorSha256 = "sha256-02x+HsWkng7OnKVSfkQR8LL1Qk42Bdrw0IMtBpS7xQc=";
|
vendorSha256 = "sha256-5b1WRq3JndkOkKBhMzGZnSyBDY5Lk0UGe/WGHQJp0CQ=";
|
||||||
subPackages = [ "cmd/influxd" "cmd/telemetryd" ];
|
subPackages = [ "cmd/influxd" "cmd/telemetryd" ];
|
||||||
|
|
||||||
PKG_CONFIG_PATH = "${flux}/pkgconfig";
|
PKG_CONFIG_PATH = "${flux}/pkgconfig";
|
||||||
|
10
pkgs/servers/nosql/influxdb2/no-deny-warnings.patch
Normal file
10
pkgs/servers/nosql/influxdb2/no-deny-warnings.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
diff --git a/flux/src/lib.rs b/flux/src/lib.rs
|
||||||
|
index 3fdf4071..a4c02277 100644
|
||||||
|
--- a/flux/src/lib.rs
|
||||||
|
+++ b/flux/src/lib.rs
|
||||||
|
@@ -1,5 +1,3 @@
|
||||||
|
-#![cfg_attr(feature = "strict", deny(warnings, missing_docs))]
|
||||||
|
-
|
||||||
|
//! This module provides the public facing API for Flux's Go runtime, including formatting,
|
||||||
|
//! parsing, and standard library analysis.
|
||||||
|
use std::sync::Arc;
|
Loading…
Reference in New Issue
Block a user