Merge pull request #203253 from LeSuisse/cryptopp-8.7.0
This commit is contained in:
commit
d90e8c7b4d
@ -11,14 +11,14 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "crypto++";
|
pname = "crypto++";
|
||||||
version = "8.6.0";
|
version = "8.7.0";
|
||||||
underscoredVersion = lib.strings.replaceStrings ["."] ["_"] version;
|
underscoredVersion = lib.strings.replaceStrings ["."] ["_"] version;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "weidai11";
|
owner = "weidai11";
|
||||||
repo = "cryptopp";
|
repo = "cryptopp";
|
||||||
rev = "CRYPTOPP_${underscoredVersion}";
|
rev = "CRYPTOPP_${underscoredVersion}";
|
||||||
hash = "sha256-a3TYaK34WvKEXN7LKAfGwQ3ZL6a3k/zMZyyVfnkQqO4=";
|
hash = "sha256-KtZXW7+J9a4uKHnK8sqj5WVaIjG3d6tzBBDxa7Wv4AE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
@ -49,11 +49,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
installTargets = [ "install-lib" ];
|
installTargets = [ "install-lib" ];
|
||||||
installFlags = [ "LDCONF=true" ];
|
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; {
|
meta = with lib; {
|
||||||
description = "A free C++ class library of cryptographic schemes";
|
description = "A free C++ class library of cryptographic schemes";
|
||||||
|
Loading…
Reference in New Issue
Block a user