mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
38 lines
921 B
Nix
38 lines
921 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "byedpi";
|
|
version = "0.14.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hufrea";
|
|
repo = "byedpi";
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
|
hash = "sha256-JdL+3ETNxaEtOLUhgLSABL9C8w/EM4Ay37OXU5jLCFA=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
})
|