cryptopp: 8.6.0 -> 8.7.0

https://github.com/weidai11/cryptopp/releases/tag/CRYPTOPP_8_7_0

Note there is a bogus CVE ID assigned to versions <= 8.6.0 (CVE-2021-43398).
See upstream discussion for more information https://github.com/weidai11/cryptopp/issues/1080
This commit is contained in:
Thomas Gerbet 2022-11-27 11:47:14 +01:00
parent a115bb9bd5
commit 486b420ba3

View File

@ -11,14 +11,14 @@
stdenv.mkDerivation rec {
pname = "crypto++";
version = "8.6.0";
version = "8.7.0";
underscoredVersion = lib.strings.replaceStrings ["."] ["_"] version;
src = fetchFromGitHub {
owner = "weidai11";
repo = "cryptopp";
rev = "CRYPTOPP_${underscoredVersion}";
hash = "sha256-a3TYaK34WvKEXN7LKAfGwQ3ZL6a3k/zMZyyVfnkQqO4=";
hash = "sha256-KtZXW7+J9a4uKHnK8sqj5WVaIjG3d6tzBBDxa7Wv4AE=";
};
outputs = [ "out" "dev" ];
@ -49,11 +49,6 @@ stdenv.mkDerivation rec {
installTargets = [ "install-lib" ];
installFlags = [ "LDCONF=true" ];
# TODO: remove postInstall hook with v8.7 -> https://github.com/weidai11/cryptopp/commit/230c558a
postInstall = lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
ln -sr $out/lib/libcryptopp.so.${version} $out/lib/libcryptopp.so.${lib.versions.majorMinor version}
ln -sr $out/lib/libcryptopp.so.${version} $out/lib/libcryptopp.so.${lib.versions.major version}
'';
meta = with lib; {
description = "A free C++ class library of cryptographic schemes";