patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob e70ec5e527ef1860f49890d5618aaace84947ebe 657 bytes (raw)
name: tools/xdp-forwarder/default.nix 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: 2025 Yureka Lilian <yureka@cyberchaos.dev>

import ../../lib/call-package.nix ({ src, pkgsMusl }:
pkgsMusl.callPackage ({ lib, stdenv, clang, libbpf, linuxHeaders, pkg-config }:

stdenv.mkDerivation {
  pname = "xdp-forwarder";
  version = "0";

  src = lib.fileset.toSource {
    root = ./.;
    fileset = lib.fileset.fileFilter
      ({ hasExt, ... }: !(hasExt "nix") && !(hasExt "md")) ./.;
  };

  buildInputs = [ libbpf linuxHeaders ];
  nativeBuildInputs = [ clang pkg-config ];

  makeFlags = [ "prefix=$(out)" ];
  hardeningDisable = [ "stackprotector" "zerocallusedregs" ];
}

) {}) (_: {})

debug log:

solving e70ec5e ...
found e70ec5e in https://inbox.spectrum-os.org/spectrum-devel/20250831205808.3962245-2-yureka@cyberchaos.dev/

applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20250831205808.3962245-2-yureka@cyberchaos.dev/
diff --git a/tools/xdp-forwarder/default.nix b/tools/xdp-forwarder/default.nix
new file mode 100644
index 0000000..e70ec5e

Checking patch tools/xdp-forwarder/default.nix...
Applied patch tools/xdp-forwarder/default.nix cleanly.

index at:
100644 e70ec5e527ef1860f49890d5618aaace84947ebe	tools/xdp-forwarder/default.nix

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).