nixpkgs/pkgs/development/libraries/mbedtls/default.nix

35 lines
686 B
Nix
Raw Normal View History

2015-04-06 21:41:54 +00:00
{ stdenv, fetchurl, perl }:
stdenv.mkDerivation rec {
2016-07-09 23:06:24 +00:00
name = "mbedtls-2.3.0";
2015-04-06 21:41:54 +00:00
src = fetchurl {
2016-07-09 23:06:24 +00:00
url = "https://tls.mbed.org/download/${name}-gpl.tgz";
sha256 = "0jfb20crlcp67shp9p8cy6vmwdjkxb0rqfbi5l5yggbrywa708r1";
2015-04-06 21:41:54 +00:00
};
nativeBuildInputs = [ perl ];
postPatch = ''
patchShebangs .
'';
makeFlags = [
"SHARED=1"
];
installFlags = [
"DESTDIR=\${out}"
];
doCheck = true;
meta = with stdenv.lib; {
2016-07-09 23:06:24 +00:00
homepage = https://tls.mbed.org/;
2015-04-06 21:41:54 +00:00
description = "Portable cryptographic and SSL/TLS library, aka polarssl";
license = licenses.gpl3;
platforms = platforms.all;
2016-07-09 23:06:24 +00:00
maintainers = with maintainers; [ wkennington fpletz ];
2015-04-06 21:41:54 +00:00
};
}