2012-10-21 07:17:14 +02:00
|
|
|
{ fetchurl, stdenv, acl, openssl, libxml2, attr, zlib, bzip2, e2fsprogs, xz
|
2012-04-19 23:40:07 +02:00
|
|
|
, sharutils }:
|
2009-04-22 01:18:09 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-06-29 17:10:14 +02:00
|
|
|
name = "libarchive-3.1.2";
|
2009-04-22 01:18:09 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-02-01 01:44:39 +01:00
|
|
|
urls = [
|
|
|
|
"http://pkgs.fedoraproject.org/repo/pkgs/libarchive/libarchive-3.1.2.tar.gz/efad5a503f66329bb9d2f4308b5de98a/${name}.tar.gz"
|
|
|
|
"${meta.homepage}/downloads/${name}.tar.gz"
|
|
|
|
];
|
2013-06-29 17:10:14 +02:00
|
|
|
sha256 = "0pixqnrcf35dnqgv0lp7qlcw7k13620qkhgxr288v7p4iz6ym1zb";
|
2009-04-22 01:18:09 +02:00
|
|
|
};
|
|
|
|
|
2014-04-21 17:56:39 +02:00
|
|
|
patches = [
|
|
|
|
./CVE-2013-0211.patch # https://github.com/libarchive/libarchive/commit/22531545
|
|
|
|
];
|
2014-02-06 20:59:04 +01:00
|
|
|
|
2013-05-11 19:30:03 +02:00
|
|
|
buildInputs = [ sharutils libxml2 zlib bzip2 openssl xz ] ++
|
2012-04-19 23:40:07 +02:00
|
|
|
stdenv.lib.optionals stdenv.isLinux [ e2fsprogs attr acl ];
|
2011-03-25 13:55:22 +01:00
|
|
|
|
2009-04-22 01:18:09 +02:00
|
|
|
meta = {
|
2012-10-21 07:17:14 +02:00
|
|
|
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, ..
|
|
|
|
'';
|
2013-06-29 17:10:14 +02:00
|
|
|
homepage = http://libarchive.org;
|
2012-10-21 07:17:14 +02:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
|
|
|
platforms = with stdenv.lib.platforms; all;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ jcumming ];
|
2009-04-22 01:18:09 +02:00
|
|
|
};
|
|
|
|
}
|