Skip to content

Commit

Permalink
Merge pull request #320321 from oluceps/dae-trace
Browse files Browse the repository at this point in the history
dae: add missing subcommand `trace`
  • Loading branch information
Aleksanaa committed Jun 21, 2024
2 parents 18bfe44 + a2f0744 commit bb0184d
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions pkgs/tools/networking/dae/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{ lib
, clang
, fetchFromGitHub
, buildGoModule
{
lib,
clang,
fetchFromGitHub,
buildGoModule,
}:
buildGoModule rec {
pname = "dae";
Expand All @@ -21,17 +22,15 @@ buildGoModule rec {

nativeBuildInputs = [ clang ];

ldflags = [
"-s"
"-w"
"-X github.com/daeuniverse/dae/cmd.Version=${version}"
"-X github.com/daeuniverse/dae/common/consts.MaxMatchSetLen_=64"
];
buildPhase = ''
runHook preBuild
preBuild = ''
make CFLAGS="-D__REMOVE_BPF_PRINTK -fno-stack-protector -Wno-unused-command-line-argument" \
NOSTRIP=y \
ebpf
VERSION=${version} \
OUTPUT=$out/bin/dae
runHook postBuild
'';

# network required
Expand All @@ -47,7 +46,10 @@ buildGoModule rec {
description = "Linux high-performance transparent proxy solution based on eBPF";
homepage = "https://github.com/daeuniverse/dae";
license = licenses.agpl3Only;
maintainers = with maintainers; [ oluceps pokon548 ];
maintainers = with maintainers; [
oluceps
pokon548
];
platforms = platforms.linux;
mainProgram = "dae";
};
Expand Down

0 comments on commit bb0184d

Please sign in to comment.