From 9a09ad4ceb4a8b09ccdc1b2374b954510748d8fd Mon Sep 17 00:00:00 2001 From: AveryanAlex Date: Wed, 21 Aug 2024 20:05:10 +0300 Subject: [PATCH] byedpi: init at 0.13.1 --- pkgs/by-name/by/byedpi/package.nix | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 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 000000000000..d081c059dcc7 --- /dev/null +++ b/pkgs/by-name/by/byedpi/package.nix @@ -0,0 +1,37 @@ +{ + lib, + stdenv, + fetchFromGitHub, + nix-update-script, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "byedpi"; + version = "0.13.1"; + + src = fetchFromGitHub { + owner = "hufrea"; + repo = "byedpi"; + rev = "refs/tags/v${finalAttrs.version}"; + hash = "sha256-Sf5Ik8+9nKhum4/faGf44Y/gQggldyRsFUVmd9XPKOA="; + }; + + installPhase = '' + runHook preInstall + install -Dm755 ciadpi $out/bin/ciadpi + runHook postInstall + ''; + + strictDeps = true; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "SOCKS proxy server implementing some 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 = with lib.platforms; linux ++ windows; + mainProgram = "ciadpi"; + }; +})