1 { lib, stdenv, fetchFromGitHub, rustPlatform, Security, apacheHttpd, curl }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 hash = "sha256-IDIWN5g1aaE6SDdXSm4WYK6n+BpuypPYQITuDj1WJEc=";
14 propagatedBuildInputs = lib.optionals stdenv.isDarwin [ Security ];
16 cargoLock.lockFile = ./Cargo.lock;
18 cp ${./Cargo.lock} Cargo.lock
24 make install DESTDIR=${placeholder "out"}
30 apacheHttpd = apacheHttpd.override { modTlsSupport = true; };
31 curl = curl.override { opensslSupport = false; rustlsSupport = true; };
35 description = "C-to-rustls bindings";
36 homepage = "https://github.com/rustls/rustls-ffi/";
37 license = with lib.licenses; [ mit asl20 isc ];
38 maintainers = [ maintainers.lesuisse ];