git.iko.soy/typeable/nixpkgs
on master help sign in
libreswan: Unbreak the package

On current unstable, libreswan compiles but then doesn't run because of an ABI change in NSS. There is an easy fix which is to land in the next version of libreswan, see https://github.com/libreswan/libreswan/issues/334; in the meantime, we can copy this fix so that libreswan works again on unstable.

commit975db4fb866ab8cd4976dc95fa310cadbc4a9735 authorIngo Blechschmidt <iblech@speicherleck.de> dateSat 24 Oct 2020, 13:22 (6 years ago) parent2bb0110
1 file changed+4
pkgs/tools/networking/libreswan/default.nix+4
pkgs/tools/networking/libreswan/default.nix+4
@@ -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 ];