2015-04-06 21:41:54 +00:00
|
|
|
{ stdenv, fetchurl, perl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-02-27 20:16:17 +00:00
|
|
|
name = "mbedtls-1.3.16";
|
2015-04-06 21:41:54 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://polarssl.org/download/${name}-gpl.tgz";
|
2016-02-27 20:16:17 +00:00
|
|
|
sha256 = "f413146c177c52d4ad8f48015e2fb21dd3a029ca30a2ea000cbc4f9bd092c933";
|
2015-04-06 21:41:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"SHARED=1"
|
|
|
|
];
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"DESTDIR=\${out}"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://polarssl.org/;
|
|
|
|
description = "Portable cryptographic and SSL/TLS library, aka polarssl";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
|
|
|
};
|
|
|
|
}
|