anchor.diff:      "--enable-remote-bitbang"
     ];
   
  -  NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isGNU [
  -    "-Wno-implicit-fallthrough"
  -    "-Wno-format-truncation"
  -    "-Wno-format-overflow"
  -    "-Wno-error=tautological-compare"
  -    "-Wno-error=array-bounds"
  +  NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [
       "-Wno-error=cpp"
  -  ]);
  +  ];
   
     postInstall = lib.optionalString stdenv.isLinux ''
       mkdir -p "$out/etc/udev/rules.d"
  
positive.code:       "remote target" for source-level debugging of embedded systems using the
        GNU GDB program.
      '';
      homepage = "http://openocd.sourceforge.net/";
      license = licenses.gpl2Plus;
      maintainers = with maintainers; [ bjornfor ];
      platforms = platforms.unix;
  
negative.code: { stdenv, lib, fetchgit, libftdi1, libusb1, pkgconfig, hidapi, autoreconfHook }:
  
  stdenv.mkDerivation rec {
    pname = "openocd";
    version = "2020-09-02";
  
    src = fetchgit {
      url = "https://git.code.sf.net/p/openocd/code";
      rev = "d46f28c2ea2611f5fbbc679a5eed253d3dcd2fe3";
      sha256 = "1256qqhn3pxmijfk1x0y5b5kc5ar88ivykkvx0h1m7pdwqfs6zm9";
      fetchSubmodules = true;
    };
  
    nativeBuildInputs = [ pkgconfig autoreconfHook ];
    buildInputs = [ libftdi1 libusb1 hidapi ];
  
    configureFlags = [
  