guile-netlink/guix.scm

guix.scm

1
;;;; This file is part of Guile Netlink
2
;;;;
3
;;;; Copyright (C) 2019 Julien Lepiller <julien@lepiller.eu>
4
;;;; 
5
;;;; This library is free software: you can redistribute it and/or modify
6
;;;; it under the terms of the GNU General Public License as published by
7
;;;; the Free Software Foundation, either version 3 of the License, or
8
;;;; (at your option) any later version.
9
;;;;
10
;;;; This library is distributed in the hope that it will be useful,
11
;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
12
;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
;;;; GNU General Public License for more details.
14
;;;;
15
;;;; You should have received a copy of the GNU General Public License
16
;;;; along with this library.  If not, see <https://www.gnu.org/licenses/>.
17
18
(use-modules
19
  ((guix licenses) #:prefix license:)
20
  (guix build-system gnu)
21
  (guix download)
22
  (guix gexp)
23
  (guix git-download)
24
  (guix packages)
25
  (guix utils)
26
  (gnu packages autotools)
27
  (gnu packages guile)
28
  (gnu packages guile-xyz)
29
  (gnu packages pkg-config)
30
  (gnu packages texinfo)
31
  (gnu packages tls))
32
33
(define %srcdir
34
  (dirname (current-filename)))
35
36
(package
37
  (name "guile-netlink")
38
  (version "0.1")
39
  (source (local-file "." "guile-netlink-checkout"
40
                      #:recursive? #t
41
                      #:select? (git-predicate %srcdir)))
42
  (build-system gnu-build-system)
43
  (arguments
44
   `(#:tests? #f)); no tests
45
  (inputs
46
   `(("guile" ,guile-3.0)))
47
  (native-inputs
48
   `(("automake" ,automake)
49
     ("autoconf" ,autoconf)
50
     ("pkg-config" ,pkg-config)
51
     ("texinfo" ,texinfo)))
52
  (home-page "https://git.lepiller.eu/guile-netlink")
53
  (synopsis "Netlink protocol implementation for Guile")
54
  (description "Guile Netlink is a GNU Guile library providing an implementation
55
of the netlink protocol.
56
57
It provides a generic library for writing implementations of a netlink
58
protocol, a low-level rtnetlink implementation that uses that library and a
59
high-level API for network management that uses rtnetlink.")
60
  (license license:gpl3+))
61