1414} :
1515
1616let
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 {
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 = ''
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 = ''
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
0 commit comments