Commit 03f9437e authored by eljamm's avatar eljamm
Browse files

libopaque: fix build with liboprf

parent 7ca53762
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -28,6 +28,13 @@ stdenv.mkDerivation (finalAttrs: {
    liboprf
  ];

  # expand_message_xmd has been renamed to oprf_expand_message_xmd in liboprf
  # TODO: remove in the next release
  postPatch = ''
    substituteInPlace opaque.c \
      --replace-fail 'expand_message_xmd' 'oprf_expand_message_xmd'
  '';

  postInstall = ''
    mkdir -p ${placeholder "out"}/lib/pkgconfig
    cp ../libopaque.pc ${placeholder "out"}/lib/pkgconfig/