gnu: Add libsocketcan.
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>
Mon, 10 Aug 2020 18:58:50 +0000 (14:58 -0400)
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>
Tue, 11 Aug 2020 04:12:40 +0000 (00:12 -0400)
* gnu/packages/networking.scm (libsocketcan): New variable.

gnu/packages/networking.scm

index 25b6377..ca0f171 100644 (file)
@@ -2499,6 +2499,30 @@ networks using zeromq.  It has these key characteristics:
     (home-page "https://github.com/zeromq/zyre")
     (license license:mpl2.0)))
 
+(define-public libsocketcan
+  (package
+    (name "libsocketcan")
+    (version "0.0.11")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://git.pengutronix.de/cgit/tools/libsocketcan")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "17z2y2r9xkixhr9bxr50m77fh710afl30s7jdhbxrvf56vmal2jr"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("libtool" ,libtool)))
+    (home-page "https://git.pengutronix.de/cgit/tools/libsocketcan")
+    (synopsis "SocketCAN user-space library")
+    (description "This library allows controlling basic functions in SocketCAN
+from user-space.  It requires a kernel built with SocketCAN support.")
+    (license license:lgpl2.1+)))
+
 (define-public can-utils
   (package
     (name "can-utils")