2016-09-05 23:14:04 +03:00
|
|
|
{ stdenv, fetchurl, perl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-11-22 15:08:13 +03:00
|
|
|
name = "mbedtls-1.3.22";
|
2016-09-05 23:14:04 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://tls.mbed.org/download/${name}-gpl.tgz";
|
2018-11-22 15:08:13 +03:00
|
|
|
sha256 = "0ms4s41z88mz7b6gsnp7jslms4v0115k7gw51i6kx6ng9am43l6y";
|
2016-09-05 23:14:04 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|