Pleroma: use libxcrypt-legacy

4e300e071b disabled the "weak cyphers"
on libxcrypt. For some reason, this is breaking the crypt hex library.

Using lybxcrypt-legacy, which re-enables these weak cyphers.

Upstream removed the crypt dependency and is drafting a new release.
We'll drop altogether this libxcrypt dependency soon enough anyways.

Fixes #223518
This commit is contained in:
Félix Baylac Jacqué 2023-03-30 13:49:58 +02:00
parent d5befe0223
commit 9ebbbb4fc0

View File

@ -1,7 +1,7 @@
{ lib, beamPackages
, fetchFromGitHub, fetchFromGitLab, fetchHex
, file, cmake
, libxcrypt
, libxcrypt-legacy
, nixosTests, writeText
, ...
}:
@ -165,7 +165,7 @@ beamPackages.mixRelease rec {
crypt = let
version = prev.crypt.version;
in prev.crypt.override {
buildInputs = [ libxcrypt ];
buildInputs = [ libxcrypt-legacy ];
postInstall = "mv $out/lib/erlang/lib/crypt-${version}/priv/{hex-source-crypt-${version},crypt}.so";
};
});