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

58 lines
1.8 KiB
Nix
Raw Normal View History

2018-01-28 01:10:04 +00:00
{ stdenv, fetchFromGitHub, perl }:
2015-04-06 22:41:54 +01:00
stdenv.mkDerivation rec {
mbedtls: 2.9.0 -> 2.10.0 Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/mbedtls/versions. These checks were done: - built on NixOS - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_udp_proxy_wrapper.sh had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_aescrypt2 passed the binary check. - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_crypt_and_hash had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_generic_sum had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_hello passed the binary check. - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_dh_client had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_dh_genprime had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_dh_server had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_ecdh_curve25519 passed the binary check. - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_ecdsa had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_gen_key had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_key_app passed the binary check. - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_key_app_writer had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_mpi_demo passed the binary check. - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_pk_decrypt passed the binary check. - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_pk_encrypt had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_pk_sign had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_pk_verify had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_rsa_decrypt had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_rsa_encrypt had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_rsa_genkey passed the binary check. - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_rsa_sign passed the binary check. - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_rsa_sign_pss had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_rsa_verify had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_rsa_verify_pss had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_gen_entropy passed the binary check. - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_gen_random_ctr_drbg passed the binary check. - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_gen_random_havege passed the binary check. - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_dtls_client had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_dtls_server had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_mini_client had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_ssl_client1 had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_ssl_client2 had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_ssl_fork_server had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_ssl_mail_client passed the binary check. - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_ssl_server had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_ssl_server2 had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_benchmark passed the binary check. - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_selftest had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_ssl_cert_test passed the binary check. - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_udp_proxy had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_zeroize had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_pem2der passed the binary check. - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_strerror passed the binary check. - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_cert_app had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_cert_req had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_cert_write had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_crl_app passed the binary check. - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_req_app passed the binary check. - 18 of 49 passed binary check by having a zero exit code. - 0 of 49 passed binary check by having the new version present in output. - found 2.10.0 with grep in /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0 - directory tree listing: https://gist.github.com/a14a6f7f932021b4c72aa2a56d3cafc8 - du listing: https://gist.github.com/d1d619564617178d839c99f546be2911
2018-06-08 11:15:51 +01:00
name = "mbedtls-2.10.0";
2015-04-06 22:41:54 +01:00
2018-01-28 01:10:04 +00:00
src = fetchFromGitHub {
owner = "ARMmbed";
repo = "mbedtls";
rev = name;
mbedtls: 2.9.0 -> 2.10.0 Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/mbedtls/versions. These checks were done: - built on NixOS - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_udp_proxy_wrapper.sh had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_aescrypt2 passed the binary check. - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_crypt_and_hash had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_generic_sum had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_hello passed the binary check. - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_dh_client had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_dh_genprime had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_dh_server had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_ecdh_curve25519 passed the binary check. - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_ecdsa had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_gen_key had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_key_app passed the binary check. - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_key_app_writer had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_mpi_demo passed the binary check. - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_pk_decrypt passed the binary check. - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_pk_encrypt had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_pk_sign had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_pk_verify had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_rsa_decrypt had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_rsa_encrypt had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_rsa_genkey passed the binary check. - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_rsa_sign passed the binary check. - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_rsa_sign_pss had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_rsa_verify had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_rsa_verify_pss had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_gen_entropy passed the binary check. - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_gen_random_ctr_drbg passed the binary check. - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_gen_random_havege passed the binary check. - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_dtls_client had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_dtls_server had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_mini_client had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_ssl_client1 had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_ssl_client2 had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_ssl_fork_server had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_ssl_mail_client passed the binary check. - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_ssl_server had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_ssl_server2 had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_benchmark passed the binary check. - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_selftest had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_ssl_cert_test passed the binary check. - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_udp_proxy had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_zeroize had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_pem2der passed the binary check. - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_strerror passed the binary check. - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_cert_app had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_cert_req had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_cert_write had a zero exit code or showed the expected version - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_crl_app passed the binary check. - /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0/bin/mbedtls_req_app passed the binary check. - 18 of 49 passed binary check by having a zero exit code. - 0 of 49 passed binary check by having the new version present in output. - found 2.10.0 with grep in /nix/store/q18bxf7hgbdqa9w5di6ndcf3xs28r6h5-mbedtls-2.10.0 - directory tree listing: https://gist.github.com/a14a6f7f932021b4c72aa2a56d3cafc8 - du listing: https://gist.github.com/d1d619564617178d839c99f546be2911
2018-06-08 11:15:51 +01:00
sha256 = "0im83kqf7a64ywxh6dnv0by3gwxww93zx5wpdqglr6xp7b8yg4xk";
2015-04-06 22:41:54 +01:00
};
nativeBuildInputs = [ perl ];
postPatch = ''
patchShebangs .
'' + stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace library/Makefile --replace "-soname" "-install_name"
substituteInPlace tests/scripts/run-test-suites.pl --replace "LD_LIBRARY_PATH" "DYLD_LIBRARY_PATH"
# Necessary for install_name_tool below
echo "LOCAL_LDFLAGS += -headerpad_max_install_names" >> programs/Makefile
'';
2015-04-06 22:41:54 +01:00
makeFlags = [
"SHARED=1"
] ++ stdenv.lib.optionals stdenv.isDarwin [
"DLEXT=dylib"
2015-04-06 22:41:54 +01:00
];
installFlags = [
"DESTDIR=\${out}"
];
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
2018-05-07 19:11:18 +01:00
install_name_tool -change libmbedcrypto.dylib $out/lib/libmbedcrypto.dylib $out/lib/libmbedtls.dylib
install_name_tool -change libmbedcrypto.dylib $out/lib/libmbedcrypto.dylib $out/lib/libmbedx509.dylib
install_name_tool -change libmbedx509.dylib $out/lib/libmbedx509.dylib $out/lib/libmbedtls.dylib
for exe in $out/bin/*; do
if [[ $exe != *.sh ]]; then
install_name_tool -change libmbedtls.dylib $out/lib/libmbedtls.dylib $exe
install_name_tool -change libmbedx509.dylib $out/lib/libmbedx509.dylib $exe
install_name_tool -change libmbedcrypto.dylib $out/lib/libmbedcrypto.dylib $exe
fi
done
'';
2015-04-06 22:41:54 +01:00
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
};
}