at 24.05-pre 46 lines 1.7 kB view raw
1{ lib, stdenv, fetchurl, pkg-config, libxml2, xz, openssl, zlib, bzip2, fts, autoreconfHook }: 2 3stdenv.mkDerivation rec { 4 version = "1.6.1"; 5 pname = "xar"; 6 7 src = fetchurl { 8 url = "https://github.com/downloads/mackyle/xar/${pname}-${version}.tar.gz"; 9 sha256 = "0ghmsbs6xwg1092v7pjcibmk5wkyifwxw6ygp08gfz25d2chhipf"; 10 }; 11 12 nativeBuildInputs = [ autoreconfHook pkg-config ]; 13 buildInputs = [ libxml2 xz openssl zlib bzip2 fts ]; 14 15 patches = [ 16 ./0001-Add-useless-descriptions-to-AC_DEFINE.patch 17 ./0002-Use-pkg-config-for-libxml2.patch 18 ]; 19 20 postPatch = '' 21 substituteInPlace configure.ac \ 22 --replace 'OpenSSL_add_all_ciphers' 'OPENSSL_init_crypto' \ 23 --replace 'openssl/evp.h' 'openssl/crypto.h' 24 ''; 25 26 meta = { 27 homepage = "https://mackyle.github.io/xar/"; 28 description = "Extensible Archiver"; 29 30 longDescription = 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. 40 ''; 41 42 license = lib.licenses.bsd3; 43 maintainers = with lib.maintainers; [ copumpkin ]; 44 platforms = lib.platforms.all; 45 }; 46}