anchor.diff:      libxml2
     ]
     ++ (with perlPackages; [ perl IOStringy ])
  -  ++ lib.optionals stdenv.isDarwin [ libiconv ];
  +  ++ lib.optionals stdenv.isDarwin [ libintl ];
   
     postInstall = ''
       wrapProgram $out/bin/hivexregedit \
  
positive.code:   '';
  
    meta = with lib; {
      broken = stdenv.isDarwin;
      description = "Windows registry hive extraction library";
      license = licenses.lgpl2;
      homepage = "https://github.com/libguestfs/hivex";
      maintainers = with maintainers; [offline];
      platforms = platforms.linux ++ platforms.darwin;
    };
  }
  
negative.code: { lib, stdenv, fetchurl, pkg-config, autoreconfHook, makeWrapper
  , perlPackages, libxml2, libintl }:
  
  stdenv.mkDerivation rec {
    pname = "hivex";
  