dae: init at 0.1.5
Co-authored-by: oluceps <i@oluceps.uk> Co-authored-by: NickCao <nickcao@nichi.co>
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
{ lib
|
||||
, clang
|
||||
, fetchFromGitHub
|
||||
, buildGoModule
|
||||
}:
|
||||
buildGoModule rec {
|
||||
pname = "dae";
|
||||
version = "0.1.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "daeuniverse";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-EoStRmyYOtvG5ejtvHWNe9IIeE77hqp1OXBhRdxCYHs=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
vendorHash = "sha256-vxHufE3538l6zIcozFcrNhl+2sG1PtzkVxC0NyL3WMU=";
|
||||
|
||||
proxyVendor = true;
|
||||
|
||||
nativeBuildInputs = [ clang ];
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/daeuniverse/dae/cmd.Version=${version}"
|
||||
"-X github.com/daeuniverse/dae/common/consts.MaxMatchSetLen_=64"
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
make CFLAGS="-D__REMOVE_BPF_PRINTK -fno-stack-protector" \
|
||||
NOSTRIP=y \
|
||||
ebpf
|
||||
'';
|
||||
|
||||
# network required
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Linux high-performance transparent proxy solution based on eBPF";
|
||||
homepage = "https://github.com/daeuniverse/dae";
|
||||
license = licenses.agpl3Only;
|
||||
maintainers = with maintainers; [ oluceps ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
@@ -492,6 +492,8 @@ with pkgs;
|
||||
|
||||
cryptowatch-desktop = callPackage ../applications/finance/cryptowatch { };
|
||||
|
||||
dae = callPackage ../tools/networking/dae { };
|
||||
|
||||
databricks-sql-cli = python3Packages.callPackage ../applications/misc/databricks-sql-cli { };
|
||||
|
||||
dhallDirectoryToNix = callPackage ../build-support/dhall/directory-to-nix.nix { };
|
||||
|
||||
Reference in New Issue
Block a user