From 486b420ba3df99590604c981a10e20608270aa86 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Sun, 27 Nov 2022 11:47:14 +0100 Subject: [PATCH] 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 --- pkgs/development/libraries/crypto++/default.nix | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pkgs/development/libraries/crypto++/default.nix b/pkgs/development/libraries/crypto++/default.nix index a31a4472e1c4..b0568e3c355e 100644 --- a/pkgs/development/libraries/crypto++/default.nix +++ b/pkgs/development/libraries/crypto++/default.nix @@ -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";