libevent: split _openssl into a separate output
... to save ~3.4 MB of openssl from the default closure.
This commit is contained in:
parent
079353e208
commit
78e4f9d8d7
@ -23,11 +23,21 @@ stdenv.mkDerivation {
|
|||||||
| grep -v '^dh-autoreconf' | sed 's|^|debian/patches/|')"
|
| grep -v '^dh-autoreconf' | sed 's|^|debian/patches/|')"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
# libevent_openssl is moved into its own output, so that openssl isn't present
|
||||||
|
# in the default closure.
|
||||||
|
outputs = [ "out" "dev" "openssl" ];
|
||||||
outputBin = "dev";
|
outputBin = "dev";
|
||||||
|
propagatedBuildOutputs = [ "out" "openssl" ];
|
||||||
|
|
||||||
buildInputs = [ openssl ] ++ stdenv.lib.optional stdenv.isCygwin findutils;
|
buildInputs = [ openssl ] ++ stdenv.lib.optional stdenv.isCygwin findutils;
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
moveToOutput "lib/libevent_openssl*" "$openssl"
|
||||||
|
substituteInPlace "$dev/lib/pkgconfig/libevent_openssl.pc" \
|
||||||
|
--replace "$out" "$openssl"
|
||||||
|
sed "/^libdir=/s|$out|$openssl|" -i "$openssl"/lib/libevent_openssl.la
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Event notification library";
|
description = "Event notification library";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user