libsodium: 1.0.19 -> 1.0.20

Changes: https://github.com/jedisct1/libsodium/releases/tag/1.0.20-RELEASE
This commit is contained in:
Sergei Trofimovich
2024-05-27 10:36:18 +01:00
parent a62e3974b8
commit 3db6ef1b77
@@ -1,28 +1,18 @@
{ lib, stdenv, fetchurl, fetchpatch, autoreconfHook
{ lib, stdenv, fetchurl, autoreconfHook
, testers
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libsodium";
version = "1.0.19";
version = "1.0.20";
src = fetchurl {
url = "https://download.libsodium.org/libsodium/releases/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
hash = "sha256-AY15/goEXMoHMx03vQy1ey6DjFG8SP2DehRy5QBou+o=";
hash = "sha256-67Ze9spDkzPCu0GgwZkFhyiNoH9sf9B8s6GMwY0wzhk=";
};
outputs = [ "out" "dev" ];
patches = [
# Drop -Ofast as it breaks floating point arithmetics in downstream
# users.
(fetchpatch {
name = "drop-Ofast.patch";
url = "https://github.com/jedisct1/libsodium/commit/ffd1e374989197b44d815ac8b5d8f0b43b6ce534.patch";
hash = "sha256-jG0VirIoFBwYmRx6zHSu2xe6pXYwbeqNVhPJxO6eJEY=";
})
];
nativeBuildInputs = [ autoreconfHook ];
separateDebugInfo = stdenv.isLinux && stdenv.hostPlatform.libc != "musl";