libarchive: Use multiple outputs
This commit is contained in:
parent
8b31b91a22
commit
37f2679e73
@ -17,6 +17,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1lngng84k1kkljl74q0cdqc3s82vn2kimfm02dgm4d6m7x71mvkj";
|
sha256 = "1lngng84k1kkljl74q0cdqc3s82vn2kimfm02dgm4d6m7x71mvkj";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
outputs = [ "out" "lib" "dev" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ sharutils zlib bzip2 openssl xz lzo ]
|
buildInputs = [ sharutils zlib bzip2 openssl xz lzo ]
|
||||||
++ stdenv.lib.optionals stdenv.isLinux [ e2fsprogs attr acl ]
|
++ stdenv.lib.optionals stdenv.isLinux [ e2fsprogs attr acl ]
|
||||||
@ -32,7 +34,7 @@ stdenv.mkDerivation rec {
|
|||||||
'' else null;
|
'' else null;
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
sed -i $out/lib/libarchive.la \
|
sed -i $lib/lib/libarchive.la \
|
||||||
-e 's|-lcrypto|-L${openssl.out}/lib -lcrypto|' \
|
-e 's|-lcrypto|-L${openssl.out}/lib -lcrypto|' \
|
||||||
-e 's|-llzo2|-L${lzo}/lib -llzo2|'
|
-e 's|-llzo2|-L${lzo}/lib -llzo2|'
|
||||||
'';
|
'';
|
||||||
@ -42,7 +44,7 @@ stdenv.mkDerivation rec {
|
|||||||
longDescription = ''
|
longDescription = ''
|
||||||
This library has code for detecting and reading many archive formats and
|
This library has code for detecting and reading many archive formats and
|
||||||
compressions formats including (but not limited to) tar, shar, cpio, zip, 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;
|
homepage = http://libarchive.org;
|
||||||
license = stdenv.lib.licenses.bsd3;
|
license = stdenv.lib.licenses.bsd3;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user