diff options
author | Renaud <c0bw3b@users.noreply.github.com> | 2021-12-20 00:04:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-20 00:04:57 +0100 |
commit | e8a44b55839e421edd6a5a106f229ebe749c2966 (patch) | |
tree | 959a56217653058b819cfdaffbefdbcfbc0d48b7 /pkgs/development/libraries/crypto++/default.nix | |
parent | e6647de754798313b91b04e685caba6918546a0f (diff) |
cryptopp: 8.4.0 -> 8.6.0
Disabling fortify because it clashes with upstream optimisation flags
Diffstat (limited to 'pkgs/development/libraries/crypto++/default.nix')
-rw-r--r-- | pkgs/development/libraries/crypto++/default.nix | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/pkgs/development/libraries/crypto++/default.nix b/pkgs/development/libraries/crypto++/default.nix index fe553cb37b9ed..bedf75e75ca46 100644 --- a/pkgs/development/libraries/crypto++/default.nix +++ b/pkgs/development/libraries/crypto++/default.nix @@ -5,30 +5,22 @@ stdenv.mkDerivation rec { pname = "crypto++"; - version = "8.4.0"; + version = "8.6.0"; underscoredVersion = lib.strings.replaceStrings ["."] ["_"] version; src = fetchFromGitHub { owner = "weidai11"; repo = "cryptopp"; rev = "CRYPTOPP_${underscoredVersion}"; - sha256 = "1gwn8yh1mh41hkh6sgnhb9c3ygrdazd7645msl20i0zdvcp7f5w3"; + hash = "sha256-a3TYaK34WvKEXN7LKAfGwQ3ZL6a3k/zMZyyVfnkQqO4="; }; outputs = [ "out" "dev" ]; postPatch = '' substituteInPlace GNUmakefile \ - --replace "AR = libtool" "AR = ar" \ - --replace "ARFLAGS = -static -o" "ARFLAGS = -cru" - - # See https://github.com/weidai11/cryptopp/issues/1011 - substituteInPlace GNUmakefile \ - --replace "ZOPT = -O0" "ZOPT =" - ''; - - preConfigure = '' - sh TestScripts/configure.sh + --replace "AR = libtool" "AR = ar" \ + --replace "ARFLAGS = -static -o" "ARFLAGS = -cru" ''; makeFlags = [ "PREFIX=${placeholder "out"}" ]; @@ -37,10 +29,11 @@ stdenv.mkDerivation rec { ++ lib.optional enableShared "shared" ++ [ "libcryptopp.pc" ]; enableParallelBuilding = true; + hardeningDisable = [ "fortify" ]; doCheck = true; - # built for checks but we don't install static lib into the nix store + # always built for checks but install static lib only when necessary preInstall = lib.optionalString (!enableStatic) "rm libcryptopp.a"; installTargets = [ "install-lib" ]; |