anchor.diff:  { lib, stdenv, callPackage, fetchFromGitHub, autoreconfHook, pkg-config
   , CoreFoundation, IOKit, libossp_uuid
  -, curl, libcap,  libuuid, lm_sensors, zlib
   , nixosTests
  +, curl, libcap, libuuid, lm_sensors, zlib, json_c
   , withCups ? false, cups
   , withDBengine ? true, libuv, lz4, judy
   , withIpmi ? (!stdenv.isDarwin), freeipmi
  
positive.code:   configureFlags = [
      "--localstatedir=/var"
      "--sysconfdir=/etc"
    ];
  
    postFixup = ''
  
negative.code:     owner = "netdata";
      repo = "netdata";
      rev = "v${version}";
      sha256 = "0735cxmljrp8zlkcq7hcxizy4j4xiv7vf782zkz5chn06n38mcik";
      fetchSubmodules = true;
    };
  
    nativeBuildInputs = [ autoreconfHook pkg-config ];
    buildInputs = [ curl.dev zlib.dev json_c ]
      ++ optionals stdenv.isDarwin [ CoreFoundation IOKit libossp_uuid ]
      ++ optionals (!stdenv.isDarwin) [ libcap.dev libuuid.dev ]
      ++ optionals withCups [ cups ]
  