anchor.diff:    };
   
     enableParallelBuilding = true;
  -  nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin pkg-config;
  +  nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin pkg-config
  +  ++ stdenv.lib.optional (enableMspds && stdenv.isLinux) autoPatchelfHook;
     buildInputs = [ libusb-compat-0_1 ]
     ++ stdenv.lib.optional stdenv.isDarwin hidapi
     ++ stdenv.lib.optional enableReadline readline;
  
positive.code: 
      # Makefile only uses pkg-config if it detects homebrew
      substituteInPlace Makefile --replace brew true
    '';
  
    installFlags = [ "PREFIX=$(out)" "INSTALL=install" ];
  
negative.code: { stdenv
  , fetchFromGitHub
  , autoPatchelfHook
  , libusb-compat-0_1
  , readline ? null
  , enableReadline ? true
  , hidapi ? null
  , pkg-config ? null
  , mspds ? null
  , enableMspds ? false
  }:
  
  assert stdenv.isDarwin -> hidapi != null && pkg-config != null;
  assert enableReadline -> readline != null;
  assert enableMspds -> mspds != null;
  
  stdenv.mkDerivation rec {
    version = "0.25";
  