aboutsummaryrefslogtreecommitdiff
path: root/battering/packages/golang-xyz.scm
blob: e803addc7f38d7d63415c76f0cd54f7ace9e6f80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
(define-module (battering packages golang-xyz)
  #:use-module (guix packages)
  #:use-module (guix git-download)
  #:use-module (guix gexp)
  #:use-module (guix utils)
  #:use-module (guix build-system go)
  #:use-module (gnu packages golang)
  #:use-module (gnu packages golang-build)
  #:use-module (gnu packages golang-check)
  #:use-module (gnu packages golang-crypto)
  #:use-module (gnu packages golang-web)
  #:use-module (gnu packages golang-xyz)
  #:use-module (gnu packages linux)
  #:use-module (gnu packages protobuf)
  #:use-module ((guix licenses)
                #:prefix license:))

(define-public go-github-com-google-nftables
  (package
    (name "go-github-com-google-nftables")
    (version "0.2.0")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/google/nftables")
             (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "04w08c619aqkh6rkfxxhi4z23nyq0p4bswfhnka9hcsy4r6rk4fm"))))
    (build-system go-build-system)
    (arguments
     (list
      #:import-path "github.com/google/nftables"))
    (propagated-inputs (list go-golang-org-x-sys
                             go-github-com-vishvananda-netns
                             go-github-com-mdlayher-netlink))
    (home-page "https://github.com/google/nftables")
    (synopsis "Go nftables API")
    (description "This package manipulates Linux nftables.")
    (license license:asl2.0)))

(define-public go-github-com-iovisor-gobpf
  (package
    (name "go-github-com-iovisor-gobpf")
    (version "0.2.0")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/iovisor/gobpf")
             (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "1w144apka9f7zjz3d77fysxi1mbik6nrf16ig4bzjgjimiiwhl4i"))))
    (build-system go-build-system)
    (arguments
     (list
      ;; Tests fail because a function signature changed in bcc/module.go.
      #:tests? #f
      #:import-path "github.com/iovisor/gobpf"))
    (native-inputs (list bcc))
    (home-page "https://github.com/iovisor/gobpf")
    (synopsis "BCC Go bindings")
    (description
     "This repository provides go bindings for the
@@url{https://github.com/iovisor/bcc,bcc framework} as well as low-level
routines to load and use @code{eBPF} programs from .elf files.")
    (license license:asl2.0)))