summaryrefslogtreecommitdiff
path: root/overlays/udp2raw/package.nix
blob: a50d87d403c5463198821d1826eab357dd6d8c6a (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 amd64_hw_aes
  '';
  installPhase = ''
    install -Dm755 udp2raw_amd64 $out/bin/udp2raw
  '';
}