2024-06-30 08:16:52 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
|
|
|
pkg-config,
|
|
|
|
libxml2,
|
|
|
|
xz,
|
|
|
|
openssl,
|
|
|
|
zlib,
|
|
|
|
bzip2,
|
|
|
|
fts,
|
|
|
|
autoreconfHook,
|
|
|
|
}:
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.6.1";
|
|
|
|
pname = "xar";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2024-06-30 08:16:52 +00:00
|
|
|
url = "https://github.com/downloads/mackyle/xar/${pname}-${version}.tar.gz";
|
2024-05-02 00:46:19 +00:00
|
|
|
sha256 = "0ghmsbs6xwg1092v7pjcibmk5wkyifwxw6ygp08gfz25d2chhipf";
|
|
|
|
};
|
|
|
|
|
2024-06-30 08:16:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
libxml2
|
|
|
|
xz
|
|
|
|
openssl
|
|
|
|
zlib
|
|
|
|
bzip2
|
|
|
|
fts
|
|
|
|
];
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
./0001-Add-useless-descriptions-to-AC_DEFINE.patch
|
|
|
|
./0002-Use-pkg-config-for-libxml2.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure.ac \
|
|
|
|
--replace 'OpenSSL_add_all_ciphers' 'OPENSSL_init_crypto' \
|
|
|
|
--replace 'openssl/evp.h' 'openssl/crypto.h'
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = lib.optional (fts != null) "LDFLAGS=-lfts";
|
|
|
|
|
|
|
|
meta = {
|
2024-06-30 08:16:52 +00:00
|
|
|
homepage = "https://mackyle.github.io/xar/";
|
2024-05-02 00:46:19 +00:00
|
|
|
description = "Extensible Archiver";
|
|
|
|
|
2024-06-30 08:16:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
The XAR project aims to provide an easily extensible archive format.
|
|
|
|
Important design decisions include an easily extensible XML table of
|
|
|
|
contents for random access to archived files, storing the toc at the
|
|
|
|
beginning of the archive to allow for efficient handling of streamed
|
|
|
|
archives, the ability to handle files of arbitrarily large sizes, the
|
|
|
|
ability to choose independent encodings for individual files in the
|
|
|
|
archive, the ability to store checksums for individual files in both
|
|
|
|
compressed and uncompressed form, and the ability to query the table
|
|
|
|
of content's rich meta-data.
|
|
|
|
'';
|
|
|
|
|
|
|
|
license = lib.licenses.bsd3;
|
2024-05-02 00:46:19 +00:00
|
|
|
maintainers = with lib.maintainers; [ copumpkin ];
|
2024-06-30 08:16:52 +00:00
|
|
|
platforms = lib.platforms.all;
|
2024-05-02 00:46:19 +00:00
|
|
|
mainProgram = "xar";
|
|
|
|
};
|
|
|
|
}
|