Subject: [PATCH] gnu: networking: Add nzbget
From: Rutger Helling <[email-masked]>
To: [email-masked]
Date: Fri, 16 Jun 2017 14:46:56 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hey Guix, 

this patch adds nzbget.

From 10b8ae648cb426c3da6a8f81128a15fef438dc89 Mon Sep 17 00:00:00 2001
From: Rutger Helling <[email-masked]>
Date: Fri, 16 Jun 2017 14:38:59 +0200
Subject: [PATCH] gnu: networking: Add nzbget.

* gnu/packages/networking.scm (nzbget): New variable.
---
 gnu/packages/networking.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 5d1c432da..e618112e2 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -15,6 +15,7 @@
 ;;; Copyright © 2017 Mathieu Othacehe <[email-masked]>
 ;;; Copyright © 2017 Leo Famulari <[email-masked]>
 ;;; Copyright © 2017 Efraim Flashner <[email-masked]>
+;;; Copyright © 2017 Rutger Helling <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1070,6 +1071,42 @@ which PID is causing this.  This makes it easy to identify programs that have
 gone wild and are suddenly taking up your bandwidth.")
     (license license:gpl2+)))
 
+(define-public nzbget
+  (package
+    (name "nzbget")
+    (version "18.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/nzbget/nzbget/archive/v"
+                           version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1a8wmbhc1si1n8axzrr8ysmrd3gr643lbh6pvzmr0hnd65fixmx5"))))
+    (arguments
+     `(#:configure-flags
+       (list
+        (string-append "--with-libcurses-includes=" (assoc-ref
+%build-inputs "ncurses") "/include")
+        (string-append "--with-libcurses-libraries=" (assoc-ref
+%build-inputs "ncurses") "/lib")
+        (string-append "--with-tlslib=GnuTLS"))))
+    (build-system gnu-build-system)
+    (inputs `(("gnutls", gnutls)
+              ("libxml2", libxml2)
+              ("ncurses", ncurses)
+              ("zlib", zlib)))
+    (native-inputs `(("pkg-config", pkg-config)))
+    (home-page "https://github.com/nzbget/nzbget")
+    (synopsis "C++ Usenet downloader")
+    (description "NZBGet is a binary downloader, which downloads files from
+Usenet based on information given in nzb-files.  NZBGet is written in C++ and is
+known for its extraordinary performance and efficiency.  NZBGet can be run at
+almost every platform - classic PCs,NAS, media players,
+SAT-receivers,WLAN-routers, etc.")
+    (license license:gpl2)))
+
 (define-public openvswitch
   (package
     (name "openvswitch")
-- 
2.13.1