@@ -29,6 +29,10 @@ stdenv.mkDerivation rec {
2929 "-Wno-error=format-truncation"
3030 "-Wno-error=pointer-compare"
3131 "-Wno-error=stringop-truncation"
32+ # The following flag allows libreswan v3.32 to work with NSS 3.22, see
33+ # https://github.com/libreswan/libreswan/issues/334.
34+ # This flag should not be needed for libreswan v3.33 (which is not yet released).
35+ "-DNSS_PKCS11_2_0_COMPAT=1"
3236 ];
3337
3438 nativeBuildInputs = [ makeWrapper pkgconfig ];
@@ -82,7 +86,7 @@ stdenv.mkDerivation rec {
8286 meta = with stdenv.lib; {
8387 homepage = "https://libreswan.org";
8488 description = "A free software implementation of the VPN protocol based on IPSec and the Internet Key Exchange";
85− platforms = platforms.linux ++ platforms.darwin ++ platforms.freebsd;
89+ platforms = platforms.linux ++ platforms.freebsd;
8690 license = licenses.gpl2;
8791 maintainers = [ maintainers.afranchuk ];
8892 };