libopaque: fix build with liboprf

This commit is contained in:
eljamm
2025-09-02 18:12:00 +02:00
parent 7ca5376260
commit 03f9437e6b
+7
View File
@@ -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/