@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, darwin
1+{ stdenv, fetchurl, fetchpatch, darwin
22# optional:
33, pkgconfig ? null # most of the extra deps need pkgconfig to be found
44, curl ? null
@@ -65,6 +65,13 @@ stdenv.mkDerivation rec {
6565 darwin.apple_sdk.frameworks.ApplicationServices
6666 ];
6767
68+ # Patch fixes broken build on 18.03
69+ # Should be included in the next release of this package
70+ patches = fetchpatch {
71+ name = "collectd_kafka_fix";
72+ url = "https://github.com/collectd/collectd/commit/6c2eb3ad28f08f7e774b6eaea5ae01b0857cf884.patch";
73+ sha256 = "14wsyj5xghij9lz7c61bzdyh45zg8pv5xn490cvbqiaci948zzv6";
74+ };
6875 configureFlags = [ "--localstatedir=/var" ];
6976
7077 # do not create directories in /var during installPhase