Merge pull request #119838 from samuela/samuela/mbedtls

This commit is contained in:
Sandro 2021-04-19 09:47:22 +02:00 committed by GitHub
commit b5b66b1c80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,13 +11,17 @@
stdenv.mkDerivation rec {
pname = "mbedtls";
version = "2.16.9"; # nixpkgs-update: no auto update
# Auto updates are disabled due to repology listing dev releases as release
# versions. See
# * https://github.com/NixOS/nixpkgs/pull/119838#issuecomment-822100428
# * https://github.com/NixOS/nixpkgs/commit/0ee02a9d42b5fe1825b0f7cee7a9986bb4ba975d
version = "2.26.0"; # nixpkgs-update: no auto update
src = fetchFromGitHub {
owner = "ARMmbed";
repo = "mbedtls";
rev = "${pname}-${version}";
sha256 = "0mz7n373b8d287crwi6kq2hb8ryyi228j38h25744lqai23qj5cf";
sha256 = "0scwpmrgvg6q7rvqkc352d2fqlsx0aylcbyibcp1f1rsn8iiif2m";
};
nativeBuildInputs = [ cmake ninja perl python3 ];
@ -30,6 +34,10 @@ stdenv.mkDerivation rec {
'';
cmakeFlags = [ "-DUSE_SHARED_MBEDTLS_LIBRARY=on" ];
NIX_CFLAGS_COMPILE = [
"-Wno-error=format"
"-Wno-error=format-truncation"
];
meta = with lib; {
homepage = "https://tls.mbed.org/";