influxdb: migrate to bindgenHook

This commit is contained in:
Weijia Wang 2023-05-27 20:05:28 +03:00
parent 3580ac6c65
commit 26d5c72cac

View file

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, stdenv, pkg-config, rustPlatform, llvmPackages, libiconv, fetchpatch, nixosTests }:
{ lib, buildGoModule, fetchFromGitHub, stdenv, pkg-config, rustPlatform, libiconv, fetchpatch, nixosTests }:
let
libflux_version = "0.170.1";
@ -25,9 +25,8 @@ let
];
sourceRoot = "source/libflux";
cargoSha256 = "sha256-kYiZ5ZRiFHRf1RQeeUGjIhnEkTvhNSZ0t4tidpRIDyk=";
nativeBuildInputs = [ llvmPackages.libclang ];
nativeBuildInputs = [ rustPlatform.bindgenHook ];
buildInputs = lib.optional stdenv.isDarwin libiconv;
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
pkgcfg = ''
Name: flux
Version: ${libflux_version}