anchor.diff:      sha256 = "1lngng84k1kkljl74q0cdqc3s82vn2kimfm02dgm4d6m7x71mvkj";
     };
   
  +  outputs = [ "out" "lib" "dev" ];
  +
     nativeBuildInputs = [ pkgconfig ];
     buildInputs = [ sharutils zlib bzip2 openssl xz lzo ]
       ++ stdenv.lib.optionals stdenv.isLinux [ e2fsprogs attr acl ]
  
positive.code:     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;
      license = stdenv.lib.licenses.bsd3;
  
negative.code:   '' else null;
  
    preFixup = ''
      sed -i $lib/lib/libarchive.la \
        -e 's|-lcrypto|-L${openssl.out}/lib -lcrypto|' \
        -e 's|-llzo2|-L${lzo}/lib -llzo2|'
    '';
  