forked from mirrors/nixpkgs
udp2raw: init at 20200818.0
This commit is contained in:
parent
2b43490121
commit
54108e13e7
41
pkgs/tools/networking/udp2raw/default.nix
Normal file
41
pkgs/tools/networking/udp2raw/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, makeWrapper
|
||||||
|
, iptables
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "udp2raw";
|
||||||
|
version = "20200818.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "wangyu-";
|
||||||
|
repo = "udp2raw";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-TkTOfF1RfHJzt80q0mN4Fek3XSFY/8jdeAVtyluZBt8=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
makeFlags = [ "dynamic" ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp udp2raw_dynamic $out/bin/udp2raw
|
||||||
|
wrapProgram $out/bin/udp2raw --prefix PATH : "${lib.makeBinPath [ iptables ]}"
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/wangyu-/udp2raw";
|
||||||
|
description = "A tunnel which turns UDP traffic into encrypted UDP/FakeTCP/ICMP traffic by using a raw socket";
|
||||||
|
license = licenses.mit;
|
||||||
|
changelog = "https://github.com/wangyu-/udp2raw/releases/tag/${version}";
|
||||||
|
maintainers = with maintainers; [ chvp ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
|
@ -12665,6 +12665,8 @@ with pkgs;
|
||||||
|
|
||||||
udftools = callPackage ../tools/filesystems/udftools {};
|
udftools = callPackage ../tools/filesystems/udftools {};
|
||||||
|
|
||||||
|
udp2raw = callPackage ../tools/networking/udp2raw { };
|
||||||
|
|
||||||
udpreplay = callPackage ../tools/networking/udpreplay { };
|
udpreplay = callPackage ../tools/networking/udpreplay { };
|
||||||
|
|
||||||
udpt = callPackage ../servers/udpt { };
|
udpt = callPackage ../servers/udpt { };
|
||||||
|
|
Loading…
Reference in a new issue