cyrus-sasl: Split into multiple outputs

Also fixup .la files to avoid unnecessary -dev dependencies.
This commit is contained in:
Tuomas Tynkkynen 2015-10-18 15:48:14 +03:00 committed by Vladimír Čunát
parent 366c1e88fc
commit 75300c334a

View File

@ -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";