Unverified Commit e7566693 authored by Nikolay Korotkiy's avatar Nikolay Korotkiy Committed by GitHub
Browse files

influxdb-cxx: fix build (#377760)

parents 034f26f3 00754f99
Loading
Loading
Loading
Loading
+13 −6
Original line number Diff line number Diff line
@@ -17,12 +17,19 @@ stdenv.mkDerivation (finalAttrs: {
  src = fetchFromGitHub {
    owner = "offa";
    repo = "influxdb-cxx";
    rev = "v${finalAttrs.version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-UlCmaw2mWAL5PuNXXGQa602Qxlf5BCr7ZIiShffG74o=";
  };

  patches = [
    (fetchpatch {
      url = "https://github.com/offa/influxdb-cxx/commit/c4b0d5a4df153232be542fbb073e857ff69ec78c.patch";
      hash = "sha256-zPE7giDjWyQbGJxdZh2CEbAjouHUcAbQEzaOfCUSkfU=";
    })
  ];

  postPatch = ''
    substituteInPlace CMakeLists.txt --replace "-Werror" ""
    substituteInPlace CMakeLists.txt --replace-warn "-Werror" ""
  '';

  nativeBuildInputs = [ cmake ];
@@ -44,11 +51,11 @@ stdenv.mkDerivation (finalAttrs: {

  doCheck = true;

  meta = with lib; {
  meta = {
    description = "InfluxDB C++ client library";
    homepage = "https://github.com/offa/influxdb-cxx";
    license = licenses.mit;
    maintainers = with maintainers; [ sikmir ];
    platforms = platforms.unix;
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ sikmir ];
    platforms = lib.platforms.unix;
  };
})