projects/guix·blob java-team · refs

85 lines · 3.0 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2024 Kai Jellinghaus <[email protected]>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages dpdk)
20 #:use-module ((guix licenses) #:prefix license:)
21 #:use-module (guix gexp)
22 #:use-module (guix utils)
23 #:use-module (guix packages)
24 #:use-module (guix download)
25 #:use-module (guix git-download)
26 #:use-module (guix build-system meson)
27 #:use-module (gnu packages)
28 #:use-module (gnu packages admin)
29 #:use-module (gnu packages backup)
30 #:use-module (gnu packages crypto)
31 #:use-module (gnu packages compression)
32 #:use-module (gnu packages elf)
33 #:use-module (gnu packages libbsd)
34 #:use-module (gnu packages linux)
35 #:use-module (gnu packages python)
36 #:use-module (gnu packages python-xyz)
37 #:use-module (gnu packages pkg-config)
38 #:use-module (gnu packages tls)
39 #:use-module (gnu packages web))
40
41(define-public dpdk
42 (package
43 (name "dpdk")
44 (version "25.07")
45 (source (origin
46 (method git-fetch)
47 (uri (git-reference
48 (url "https://github.com/DPDK/dpdk")
49 (commit (string-append "v" version))))
50 (file-name (git-file-name name version))
51 (sha256
52 (base32
53 "12bzmaiw4f4hz62grsp7bid0z2rpibwc21j62bfwmz4j3zci0w81"))))
54 (build-system meson-build-system)
55 (native-inputs (list pkg-config python-minimal python-pyelftools))
56 (inputs (list
57 numactl ;; for libnuma
58 libarchive
59 zlib
60 jansson
61 libxcrypt
62 libpcap
63 libbpf
64 openssl
65 libbsd))
66 (arguments
67 (list
68 #:configure-flags
69 #~(list "-Dplatform=generic"
70 "-Dtests=false")
71 ;; tests require /sys/devices/system/.
72 #:tests? #f))
73 (license
74 (list
75 ;; some files are additionally lgpl-2.1, but only in combination with bsd-3
76 license:bsd-3 ; core components
77 license:gpl2 ; kernel components
78 license:expat ; lib/eal/windows/include/dirent.h, drivers/net/gve/base/*
79 license:bsd-2 ; lib/eal/windows/include/getopt.h
80 license:isc)) ; lib/eal/windows/getopt.c (dual licensed to bsd-2)
81 (synopsis "Data Plane Development Kit")
82 (description "DPDK is a set of libraries and drivers for fast
83packet processing.")
84 (properties `((tunable? . #t)))
85 (home-page "https://www.dpdk.org/")))