mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
6ea5b5f2c5
It currently does not build but the situation is being handled upstream.
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security, apacheHttpd, curl }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "rustls-ffi";
|
|
version = "0.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rustls";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-IDIWN5g1aaE6SDdXSm4WYK6n+BpuypPYQITuDj1WJEc=";
|
|
};
|
|
|
|
propagatedBuildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
postPatch = ''
|
|
cp ${./Cargo.lock} Cargo.lock
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
make install DESTDIR=${placeholder "out"}
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.tests = {
|
|
apacheHttpd = apacheHttpd.override { modTlsSupport = true; };
|
|
# Currently broken notably because of https://github.com/curl/curl/issues/13248
|
|
# curl = curl.override { opensslSupport = false; rustlsSupport = true; };
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "C-to-rustls bindings";
|
|
homepage = "https://github.com/rustls/rustls-ffi/";
|
|
license = with lib.licenses; [ mit asl20 isc ];
|
|
maintainers = [ maintainers.lesuisse ];
|
|
};
|
|
}
|