27 lines
941 B
Nix
27 lines
941 B
Nix
{ fetchurl, stdenv, acl, openssl, libxml2, attr, zlib, bzip2, e2fsprogs, xz
|
|
, sharutils }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libarchive-3.1.2";
|
|
|
|
src = fetchurl {
|
|
url = "${meta.homepage}/downloads/${name}.tar.gz";
|
|
sha256 = "0pixqnrcf35dnqgv0lp7qlcw7k13620qkhgxr288v7p4iz6ym1zb";
|
|
};
|
|
|
|
buildInputs = [ sharutils libxml2 zlib bzip2 openssl xz ] ++
|
|
stdenv.lib.optionals stdenv.isLinux [ e2fsprogs attr acl ];
|
|
|
|
meta = {
|
|
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, ..
|
|
'';
|
|
homepage = http://libarchive.org;
|
|
license = stdenv.lib.licenses.bsd3;
|
|
platforms = with stdenv.lib.platforms; all;
|
|
maintainers = with stdenv.lib.maintainers; [ jcumming ];
|
|
};
|
|
}
|