mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
0514ae44df
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 - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_aescrypt2 -h` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_aescrypt2 --help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_aescrypt2 help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_hello -h` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_hello --help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_hello help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_ecdh_curve25519 -h` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_ecdh_curve25519 --help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_ecdh_curve25519 help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_key_app -h` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_key_app --help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_key_app help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_mpi_demo -h` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_mpi_demo --help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_mpi_demo help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_pk_decrypt -h` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_pk_decrypt --help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_pk_decrypt help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_rsa_genkey -h` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_rsa_genkey --help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_rsa_genkey help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_rsa_sign -h` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_rsa_sign --help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_rsa_sign help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_gen_entropy -h` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_gen_entropy --help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_gen_entropy help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_gen_random_ctr_drbg -h` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_gen_random_ctr_drbg --help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_gen_random_ctr_drbg help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_gen_random_havege -h` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_gen_random_havege --help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_gen_random_havege help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_ssl_mail_client -h` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_ssl_mail_client --help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_ssl_mail_client help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_benchmark -h` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_benchmark --help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_benchmark help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_ssl_cert_test -h` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_ssl_cert_test --help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_ssl_cert_test help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_pem2der -h` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_pem2der --help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_pem2der help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_strerror -h` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_strerror --help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_strerror help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_crl_app -h` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_crl_app --help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_crl_app help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_req_app -h` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_req_app --help` got 0 exit code - ran `/nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0/bin/mbedtls_req_app help` got 0 exit code - found 2.8.0 with grep in /nix/store/x57v8nrdybz3s7r1m45cszyv2057qipx-mbedtls-2.8.0 - directory tree listing: https://gist.github.com/92469e3cebca93b78007715bf034598e
58 lines
1.8 KiB
Nix
58 lines
1.8 KiB
Nix
{ stdenv, fetchFromGitHub, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "mbedtls-2.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ARMmbed";
|
|
repo = "mbedtls";
|
|
rev = name;
|
|
sha256 = "1pnwmy0qg8g9lz26fpr5fzpvrdjm59winxpwdjfp6d62qxdjbgmn";
|
|
};
|
|
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
patches = stdenv.lib.optionals stdenv.isDarwin [ ./darwin_dylib.patch ];
|
|
|
|
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
|
|
'';
|
|
|
|
makeFlags = [
|
|
"SHARED=1"
|
|
] ++ stdenv.lib.optionals stdenv.isDarwin [
|
|
"DLEXT=dylib"
|
|
];
|
|
|
|
installFlags = [
|
|
"DESTDIR=\${out}"
|
|
];
|
|
|
|
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
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
|
|
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
|
|
done
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|