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