Update udp2raw derivation
This commit is contained in:
parent
233f11f3b4
commit
3e1fc281b0
1 changed files with 16 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
stdenv.mkDerivation rec {
|
||||
pname = "udp2raw";
|
||||
version = "20200818.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wangyu-";
|
||||
repo = "udp2raw";
|
||||
|
@ -17,10 +18,24 @@ stdenv.mkDerivation rec {
|
|||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
buildPhase = "make dynamic";
|
||||
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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue