1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/mbedtls/default.nix

35 lines
686 B
Nix
Raw Normal View History

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