Subject: [bug#31881] [PATCH 3/4] gnu: Add go-github-com-ayufan-golang-kardianos-service.

From: Rouby Pierre-Antoine <[email-masked]>
Date: Mon, 18 Jun 2018 17:18:20 +0200

* gnu/packages/golang.scm (go-github-com-ayufan-golang-kardianos-service):
  New variable.
---
 gnu/packages/golang.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 5bda79dc9..f12c2b07a 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -1763,3 +1763,36 @@ the standard library logger.")
       (description
        "Osext is an extensions to the standard os package for Golang.")
       (license license:bsd-3))))
+
+(define-public go-github-com-ayufan-golang-kardianos-service
+  (let ((commit "0c8eb6d8fff2e2fb884a7bfd23e183fb63c0eff3")
+        (revision "0"))
+    (package
+      (name "go-github-com-ayufan-golang-kardianos-service")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url
+                "https://github.com/ayufan/golang-kardianos-service.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "0x0cn7l5gda2khsfypix7adxd5yqighzn04mxjw6hc4ayrh7his5"))))
+      (build-system go-build-system)
+      (native-inputs
+       `(("go-github-com-kardianos-osext"
+          ,go-github-com-kardianos-osext)))
+      (arguments
+       '(#:tests? #f                ;FIXME tests fail: Service is not running.
+         #:import-path
+         "github.com/ayufan/golang-kardianos-service"))
+      (home-page
+       "https://github.com/ayufan/golang-kardianos-service")
+      (synopsis "This package is golang library to run program as a service")
+      (description
+       "Golang kardinos service is golang library to run go program as a
+service.")
+      (license license:zlib))))
-- 
2.17.0