summaryrefslogtreecommitdiff
path: root/overlays/udp2raw/package.nix
blob: 6612ac3e93d298496b6480a8c5743a3cef2b0ab2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ pkgsMusl, fetchFromGitHub }:
pkgsMusl.stdenv.mkDerivation rec {
  pname = "udp2raw";
  version = "20200818.0";

  src = fetchFromGitHub {
    repo = "udp2raw-tunnel";
    owner = "wangyu-";
    rev = version;
    hash = "sha256-TkTOfF1RfHJzt80q0mN4Fek3XSFY/8jdeAVtyluZBt8=";
  };
  patches = [ ./udp2raw-makefile.patch ];
  configurePhase = "";
  buildPhase = ''
    make cc_amd64=''${CXX} amd64_hw_aes
  '';
  installPhase = ''
    install -Dm755 udp2raw_amd64_hw_aes $out/bin/udp2raw
  '';
}