1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

libarchive: Use multiple outputs

This commit is contained in:
Eelco Dolstra 2016-09-19 14:33:25 +02:00
parent 8b31b91a22
commit 37f2679e73

View file

@ -17,6 +17,8 @@ stdenv.mkDerivation rec {
sha256 = "1lngng84k1kkljl74q0cdqc3s82vn2kimfm02dgm4d6m7x71mvkj";
};
outputs = [ "out" "lib" "dev" ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ sharutils zlib bzip2 openssl xz lzo ]
++ stdenv.lib.optionals stdenv.isLinux [ e2fsprogs attr acl ]
@ -32,7 +34,7 @@ stdenv.mkDerivation rec {
'' else null;
preFixup = ''
sed -i $out/lib/libarchive.la \
sed -i $lib/lib/libarchive.la \
-e 's|-lcrypto|-L${openssl.out}/lib -lcrypto|' \
-e 's|-llzo2|-L${lzo}/lib -llzo2|'
'';
@ -42,7 +44,7 @@ stdenv.mkDerivation rec {
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, ..
compressed with gzip, bzip2, lzma, xz, ...
'';
homepage = http://libarchive.org;
license = stdenv.lib.licenses.bsd3;