anchor.diff:  
     enableParallelBuilding = true;
   
  +  meta = with lib; {
  +    homepage = "http://libarchive.org";
  +    description = "Multi-format archive and compression library";
  +    longDescription = ''
  +      The libarchive project develops a portable, efficient C library that can
  +      read and write streaming archives in a variety of formats. It also
  +      includes implementations of the common tar, cpio, and zcat command-line
  +      tools that use the libarchive library.
  +    '';
  +    changelog = "https://github.com/libarchive/libarchive/releases/tag/v${version}";
  +    license = licenses.bsd3;
  +    maintainers = with maintainers; [ jcumming AndersonTorres ];
  +    platforms = platforms.all;
  +  };
  +
     passthru.tests = {
       inherit cmake nix samba;
     };
  -
  -  meta = {
  -    description = "Multi-format archive and compression library";
  -    longDescription = ''
  -      This library has code for detecting and reading many archive formats and
  -      compressions formats including (but not limited to) tar, shar, cpio, zip, and
  -      compressed with gzip, bzip2, lzma, xz, ...
  -    '';
  -    homepage = "http://libarchive.org";
  -    changelog = "https://github.com/libarchive/libarchive/releases/tag/v${version}";
  -    license = lib.licenses.bsd3;
  -    platforms = with lib.platforms; all;
  -    maintainers = with lib.maintainers; [ jcumming ];
  -  };
   }
  
positive.code: 
    configureFlags = lib.optional (!xarSupport) "--without-xml2";
  
    preBuild = if stdenv.isCygwin then ''
      echo "#include <windows.h>" >> config.h
    '' else null;
  
    doCheck = false; # fails
  
    preFixup = ''
      sed -i $lib/lib/libarchive.la \
  
negative.code: 
    outputs = [ "out" "lib" "dev" ];
  
    nativeBuildInputs = [
      autoreconfHook
      pkg-config
    ];
  
    buildInputs =  [
      bzip2
      lzo
      openssl
      xz
      zlib
      zstd
    ] ++ lib.optional stdenv.hostPlatform.isUnix sharutils
      ++ lib.optionals stdenv.isLinux [ acl attr e2fsprogs ]
      ++ lib.optional xarSupport libxml2;
  
    # Without this, pkg-config-based dependencies are unhappy
  