From 44682450e834eb1263351183660ed6280ad4fa98 Mon Sep 17 00:00:00 2001 From: oluceps Date: Wed, 13 Mar 2024 18:51:34 +0800 Subject: [PATCH] shadow-tls: init at 0.2.25 Co-authored-by: Aleksana --- pkgs/by-name/sh/shadow-tls/package.nix | 32 ++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pkgs/by-name/sh/shadow-tls/package.nix diff --git a/pkgs/by-name/sh/shadow-tls/package.nix b/pkgs/by-name/sh/shadow-tls/package.nix new file mode 100644 index 000000000000..91116caf4750 --- /dev/null +++ b/pkgs/by-name/sh/shadow-tls/package.nix @@ -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; + }; +}