summary refs log tree commit diff
path: root/pkgs/development/libraries/mbedtls
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2016-09-05 22:14:04 +0200
committerMichael Raskin <7c6f434c@mail.ru>2016-09-06 18:19:16 +0200
commit4ae17801aff4549e7b30d1c38e46f12589349367 (patch)
tree1cf592da2570daa8782a1d0e03e529803083f27a /pkgs/development/libraries/mbedtls
parent9d1d0dd546e37b1b71ad83138fe6e8d58270344f (diff)
downloadnixpkgs-4ae17801aff4549e7b30d1c38e46f12589349367.tar
nixpkgs-4ae17801aff4549e7b30d1c38e46f12589349367.tar.gz
nixpkgs-4ae17801aff4549e7b30d1c38e46f12589349367.tar.bz2
nixpkgs-4ae17801aff4549e7b30d1c38e46f12589349367.tar.lz
nixpkgs-4ae17801aff4549e7b30d1c38e46f12589349367.tar.xz
nixpkgs-4ae17801aff4549e7b30d1c38e46f12589349367.tar.zst
nixpkgs-4ae17801aff4549e7b30d1c38e46f12589349367.zip
mbedtls_1_3; init at 1.3.17
Diffstat (limited to 'pkgs/development/libraries/mbedtls')
-rw-r--r--pkgs/development/libraries/mbedtls/1.3.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/libraries/mbedtls/1.3.nix b/pkgs/development/libraries/mbedtls/1.3.nix
new file mode 100644
index 00000000000..9bb7a5fa003
--- /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 ];
+  };
+}