cyrus-sasl: only apply patch on FreeBSD to fix #12279

I noticed the breakage but forgot this patch in another branch.
https://github.com/NixOS/nixpkgs/pull/10816#issuecomment-168486249

+4 -4
+4 -4
pkgs/development/libraries/cyrus-sasl/default.nix
··· 10 }; 11 12 buildInputs = 13 - [ openssl db gettext kerberos autoreconfHook ] 14 ++ lib.optional stdenv.isLinux pam 15 ++ lib.optional stdenv.isDarwin fixDarwinDylibNames; 16 17 patches = [ 18 ./missing-size_t.patch # https://bugzilla.redhat.com/show_bug.cgi?id=906519 19 - ( 20 fetchurl { 21 url = "http://www.linuxfromscratch.org/patches/blfs/svn/cyrus-sasl-2.1.26-fixes-3.patch"; 22 sha256 = "1vh4pc2rxxm6yvykx0b7kg09jbcwcxwv5rs6yq2ag3y8p6a9x86w"; 23 } 24 - ) 25 - ]; 26 27 configureFlags = [ 28 "--with-openssl=${openssl}"
··· 10 }; 11 12 buildInputs = 13 + [ openssl db gettext kerberos ] 14 + ++ lib.optional stdenv.isFreeBSD autoreconfHook 15 ++ lib.optional stdenv.isLinux pam 16 ++ lib.optional stdenv.isDarwin fixDarwinDylibNames; 17 18 patches = [ 19 ./missing-size_t.patch # https://bugzilla.redhat.com/show_bug.cgi?id=906519 20 + ] ++ lib.optional stdenv.isFreeBSD ( 21 fetchurl { 22 url = "http://www.linuxfromscratch.org/patches/blfs/svn/cyrus-sasl-2.1.26-fixes-3.patch"; 23 sha256 = "1vh4pc2rxxm6yvykx0b7kg09jbcwcxwv5rs6yq2ag3y8p6a9x86w"; 24 } 25 + ); 26 27 configureFlags = [ 28 "--with-openssl=${openssl}"