Merge pull request #295581 from oluceps/add-shadow-tls

shadow-tls: init at 0.2.25
This commit is contained in:
Aleksana 2024-04-20 15:18:07 +08:00 committed by GitHub
commit c0f9060ec3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
{ lib
, fetchFromGitHub
, rustPlatform
}:
rustPlatform.buildRustPackage rec{
pname = "shadow-tls";
version = "0.2.25";
src = fetchFromGitHub {
owner = "ihciah";
repo = "shadow-tls";
rev = "v${version}";
hash = "sha256-T+GPIrcME6Wq5sdfIt4t426/3ew5sUQMykYeZ6zw1ko=";
};
cargoHash = "sha256-w+DQeiQAtVsTw1VJhntX1FXymgS0fxsXiUmd6OjVWLQ=";
RUSTC_BOOTSTRAP = 1;
# network required
doCheck = false;
meta = with lib; {
homepage = "https://github.com/ihciah/shadow-tls";
description = "A proxy to expose real tls handshake to the firewall";
license = licenses.mit;
mainProgram = "shadow-tls";
maintainers = with maintainers; [ oluceps ];
platforms = platforms.linux;
};
}