cyrus-sasl: Split into multiple outputs
Also fixup .la files to avoid unnecessary -dev dependencies.
This commit is contained in:
parent
366c1e88fc
commit
75300c334a
@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1hvvbcsg21nlncbgs0cgn3iwlnb3vannzwsp6rwvnn9ba4v53g4g";
|
||||
};
|
||||
|
||||
outputs = [ "dev" "bin" "out" "man" "docdev" ];
|
||||
|
||||
buildInputs =
|
||||
[ openssl db gettext kerberos ]
|
||||
++ lib.optional stdenv.isLinux pam
|
||||
@ -32,6 +34,12 @@ stdenv.mkDerivation rec {
|
||||
|
||||
installFlags = lib.optional stdenv.isDarwin [ "framedir=$(out)/Library/Frameworks/SASL2.framework" ];
|
||||
|
||||
postInstall = ''
|
||||
for f in $out/lib/*.la $out/lib/sasl2/*.la; do
|
||||
substituteInPlace $f --replace "${openssl.dev}/lib" "${openssl.out}/lib"
|
||||
done
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://cyrusimap.web.cmu.edu/";
|
||||
description = "library for adding authentication support to connection-based protocols";
|
||||
|
Loading…
Reference in New Issue
Block a user