diff --git a/pkgs/development/libraries/mbedtls/1.3.nix b/pkgs/development/libraries/mbedtls/1.3.nix new file mode 100644 index 000000000000..9bb7a5fa003c --- /dev/null +++ b/pkgs/development/libraries/mbedtls/1.3.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchurl, perl }: + +stdenv.mkDerivation rec { + name = "mbedtls-1.3.17"; + + src = fetchurl { + url = "https://tls.mbed.org/download/${name}-gpl.tgz"; + sha256 = "10nviv3d8w6sp3kn3yzdpssvzqxdbr4kg38g7rg930q2hlzb9gpm"; + }; + + nativeBuildInputs = [ perl ]; + + postPatch = '' + patchShebangs . + ''; + + makeFlags = [ + "SHARED=1" + ]; + + installFlags = [ + "DESTDIR=\${out}" + ]; + + doCheck = true; + + meta = with stdenv.lib; { + homepage = https://tls.mbed.org/; + description = "Portable cryptographic and SSL/TLS library, aka polarssl"; + license = licenses.gpl3; + platforms = platforms.all; + maintainers = with maintainers; [ wkennington fpletz ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 62b068793416..1c41e5c89374 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8766,6 +8766,7 @@ in matio = callPackage ../development/libraries/matio { }; mbedtls = callPackage ../development/libraries/mbedtls { }; + mbedtls_1_3 = callPackage ../development/libraries/mbedtls/1.3.nix { }; mdds_0_7_1 = callPackage ../development/libraries/mdds/0.7.1.nix { }; mdds_0_12_1 = callPackage ../development/libraries/mdds/0.12.1.nix { };