1 { lib, stdenv, fetchurl, pkg-config, libxml2, xz, openssl, zlib, bzip2, fts, autoreconfHook }:
3 stdenv.mkDerivation rec {
8 url = "https://github.com/downloads/mackyle/xar/${pname}-${version}.tar.gz";
9 sha256 = "0ghmsbs6xwg1092v7pjcibmk5wkyifwxw6ygp08gfz25d2chhipf";
12 nativeBuildInputs = [ autoreconfHook pkg-config ];
13 buildInputs = [ libxml2 xz openssl zlib bzip2 fts ];
16 ./0001-Add-useless-descriptions-to-AC_DEFINE.patch
17 ./0002-Use-pkg-config-for-libxml2.patch
21 substituteInPlace configure.ac \
22 --replace 'OpenSSL_add_all_ciphers' 'OPENSSL_init_crypto' \
23 --replace 'openssl/evp.h' 'openssl/crypto.h'
27 homepage = "https://mackyle.github.io/xar/";
28 description = "Extensible Archiver";
31 '' The XAR project aims to provide an easily extensible archive format.
32 Important design decisions include an easily extensible XML table of
33 contents for random access to archived files, storing the toc at the
34 beginning of the archive to allow for efficient handling of streamed
35 archives, the ability to handle files of arbitrarily large sizes, the
36 ability to choose independent encodings for individual files in the
37 archive, the ability to store checksums for individual files in both
38 compressed and uncompressed form, and the ability to query the table
39 of content's rich meta-data.
42 license = lib.licenses.bsd3;
43 maintainers = with lib.maintainers; [ copumpkin ];
44 platforms = lib.platforms.all;