guile-netlink/guix.scm

guix.scm

1
;;;; Copyright (C) 2019 Julien Lepiller <julien@lepiller.eu>
2
;;;; 
3
;;;; This library is free software; you can redistribute it and/or
4
;;;; modify it under the terms of the GNU Lesser General Public
5
;;;; License as published by the Free Software Foundation; either
6
;;;; version 3 of the License, or (at your option) any later version.
7
;;;; 
8
;;;; This library is distributed in the hope that it will be useful,
9
;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
10
;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11
;;;; Lesser General Public License for more details.
12
;;;; 
13
;;;; You should have received a copy of the GNU Lesser General Public
14
;;;; License along with this library; if not, write to the Free Software
15
;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
;;;; 
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