udpspeeder: init at 20230206.0

wxt b7fb205e 5af44182

+56
+56
pkgs/by-name/ud/udpspeeder/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + cmake, 6 + versionCheckHook, 7 + nix-update-script, 8 + }: 9 + 10 + stdenv.mkDerivation (finalAttrs: { 11 + pname = "udpspeeder"; 12 + version = "20230206.0"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "wangyu-"; 16 + repo = "UDPspeeder"; 17 + tag = finalAttrs.version; 18 + hash = "sha256-hrwkPSxY1DTEXt9vxDECDEJaoTDzBUS7rVI609uZwdU="; 19 + }; 20 + 21 + preBuild = '' 22 + echo "const char *gitversion = \"${finalAttrs.version}\";" > git_version.h # From Makefile 23 + export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$PWD" 24 + ''; 25 + 26 + nativeBuildInputs = [ 27 + cmake 28 + ]; 29 + 30 + installPhase = '' 31 + runHook preInstall 32 + 33 + install -Dm755 ./speederv2 $out/bin/speederv2 34 + 35 + runHook postInstall 36 + ''; 37 + 38 + nativeCheckInputs = [ 39 + versionCheckHook 40 + ]; 41 + doInstallCheck = true; 42 + 43 + passthru = { 44 + updateScript = nix-update-script { }; 45 + }; 46 + 47 + meta = { 48 + homepage = "https://github.com/wangyu-/UDPspeeder"; 49 + platforms = lib.platforms.linux; 50 + maintainers = with lib.maintainers; [ bot-wxt1221 ]; 51 + license = lib.licenses.mit; 52 + changelog = "https://github.com/wangyu-/UDPspeeder/releases/tag/${finalAttrs.version}"; 53 + description = "Tunnel which Improves your Network Quality on a High-latency Lossy Link by using Forward Error Correction, possible for All Traffics(TCP/UDP/ICMP)"; 54 + mainProgram = "speederv2"; 55 + }; 56 + })