From da1ab412e1a4495cf5c44a491fe569deafcd121f Mon Sep 17 00:00:00 2001 From: AveryanAlex Date: Wed, 21 Aug 2024 20:05:10 +0300 Subject: [PATCH] byedpi: init at 0.12 --- pkgs/by-name/by/byedpi/package.nix | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pkgs/by-name/by/byedpi/package.nix diff --git a/pkgs/by-name/by/byedpi/package.nix b/pkgs/by-name/by/byedpi/package.nix new file mode 100644 index 0000000000000..28eaab3244ba9 --- /dev/null +++ b/pkgs/by-name/by/byedpi/package.nix @@ -0,0 +1,35 @@ +{ + lib, + stdenv, + fetchFromGitHub, + nix-update-script, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "byedpi"; + version = "0.12"; + + src = fetchFromGitHub { + owner = "hufrea"; + repo = "byedpi"; + rev = "refs/tags/v${finalAttrs.version}"; + hash = "sha256-LS4Dy2xTssYtN7EqWlGRh2MLTlf0kokJ2rHWuarokPE="; + }; + + installPhase = '' + install -Dm755 ciadpi $out/bin/ciadpi + ''; + + strictDeps = true; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "SOCKS proxy server implementing some of DPI bypass methods"; + homepage = "https://github.com/hufrea/byedpi"; + changelog = "https://github.com/hufrea/byedpi/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ averyanalex ]; + platforms = lib.platforms.all; + mainProgram = "ciadpi"; + }; +})