Merge pull request #203253 from LeSuisse/cryptopp-8.7.0

This commit is contained in:
Sandro 2022-12-01 02:35:16 +01:00 committed by GitHub
commit d90e8c7b4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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";