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

35 lines
680 B
Nix
Raw Normal View History

2015-04-06 23:41:54 +02:00
{ stdenv, fetchurl, perl }:
stdenv.mkDerivation rec {
2015-06-19 06:50:29 +02:00
name = "mbedtls-1.3.11";
2015-04-06 23:41:54 +02:00
src = fetchurl {
url = "https://polarssl.org/download/${name}-gpl.tgz";
2015-06-19 06:50:29 +02:00
sha256 = "1js1lk6hvw9l3nhjhnhzfazfbnlcmk229hmnlm7jli3agc1979b7";
2015-04-06 23:41:54 +02: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 ];
};
}