summaryrefslogtreecommitdiff
path: root/overlays/udp2raw/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'overlays/udp2raw/package.nix')
-rw-r--r--overlays/udp2raw/package.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/overlays/udp2raw/package.nix b/overlays/udp2raw/package.nix
new file mode 100644
index 00000000..24d040d6
--- /dev/null
+++ b/overlays/udp2raw/package.nix
@@ -0,0 +1,18 @@
1{ pkgsMusl, fetchFromGitHub }:
2pkgsMusl.stdenv.mkDerivation {
3 name = "udp2raw";
4 src = fetchFromGitHub {
5 repo = "udp2raw-tunnel";
6 owner = "wangyu-";
7 rev = "5cc304a26181ee17bc583b79a2e80449ea63e1b7";
8 sha256 = "0j6l33rnxk0zf3xmg1x0k8ffzp11y124k2m8nfj1568zjy3qcdif";
9 };
10 patches = [ ./udp2raw-makefile.patch ];
11 configurePhase = "";
12 buildPhase = ''
13 make amd64
14 '';
15 installPhase = ''
16 install -Dm755 udp2raw_amd64 $out/bin/udp2raw
17 '';
18}