Subject: [bug#31670] [PATCH 3/3] gnu: Add go-github-com-spf13-pflag.

From: Rouby Pierre-Antoine <[email-masked]>
Date: Thu, 31 May 2018 17:38:59 +0200

* gnu/packages/golang.scm (go-github-com-spf13-pflag): New variable.
---
 gnu/packages/golang.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 5876598da..6c21181da 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -1677,3 +1677,29 @@ incoming requests to their respective handler.")
       (synopsis "This package is fake clock library for golang")
       (description "Clockwork replace golang time with clock interface.")
       (license license:asl2.0))))
+
+(define-public go-github-com-spf13-pflag
+  (let ((commit "4f9190456aed1c2113ca51ea9b89219747458dc1")
+        (revision "0"))
+    (package
+      (name "go-github-com-spf13-pflag")
+      (version (git-version "0.0.0" revision commit))
+      (source
+        (origin
+          (method git-fetch)
+          (uri (git-reference
+                 (url "https://github.com/spf13/pflag.git")
+                 (commit commit)))
+          (file-name (git-file-name name version))
+          (sha256
+            (base32
+              "12vrlcsbwjqlfc49rwky45mbcj74c0kb6z54354pzas6fwzyi1kc"))))
+      (build-system go-build-system)
+      (arguments
+        '(#:import-path "github.com/spf13/pflag"))
+      (home-page "https://github.com/spf13/pflag")
+      (synopsis "This package is library to replace Go's flag package")
+      (description
+       "Pflag is library to replace Go's flag package, implementing
+POSIX/GNU-style --flags.")
+      (license license:bsd-3))))
-- 
2.17.0