guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#48729] [PATCH v2 43/47] gnu: Add go-github-com-skelterjohn-go-wde.


From: Raghav Gururajan
Subject: [bug#48729] [PATCH v2 43/47] gnu: Add go-github-com-skelterjohn-go-wde.
Date: Thu, 3 Jun 2021 16:51:06 -0400

* gnu/packages/golang.scm (go-github-com-skelterjohn-go-wde): New variable.
---
 gnu/packages/golang.scm | 43 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 074e8e6bdf..e5e3098e97 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -74,6 +74,49 @@
   #:use-module (ice-9 match)
   #:use-module (srfi srfi-1))
 
+(define-public go-github-com-skelterjohn-go-wde
+  (let ((commit "adc3f78cdb457e9db21bfff010c85ed97315d8d7")
+        (revision "203"))
+    (package
+      (name "go-github-com-skelterjohn-go-wde")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri
+          (git-reference
+           (url "https://github.com/skelterjohn/go.wde";)
+           (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1zxdilxd7iyv367xv7qx7ca0v6fkw5l8gy1bv8s762akx0vqbd85"))))
+      (build-system go-build-system)
+      (arguments
+       `(#:import-path "github.com/skelterjohn/go.wde"
+         #:phases
+         (modify-phases %standard-phases
+           (add-after 'unpack 'patch-source
+             (lambda _
+               (substitute* (find-files "." "\\.go$")
+                 ;; Use 'jezek/xgb' instead of 'BurntSushi/xgb',
+                 ;; as the latter is unmaintained.
+                 (("github.com/BurntSushi/xgb")
+                  "github.com/jezek/xgb"))
+               #t)))))
+      (propagated-inputs
+       `(("go-github-com-go-gl-gl"
+          ,go-github-com-go-gl-gl)
+         ("go-github-com-grd-glfw3"
+          ,go-github-com-grd-glfw3)
+         ("go-github-com-jezek-xgb"
+          ,go-github-com-jezek-xgb)
+         ("go-github-com-burntsushi-xgbutil"
+          ,go-github-com-burntsushi-xgbutil)))
+      (home-page "https://github.com/skelterjohn/go.wde";)
+      (synopsis "Windows, drawing and events for Go")
+      (description "Go-WDE provides (W)indows, (D)rawing and (E)vents for Go.")
+      (license license:asl2.0))))
+
 (define-public go-github-com-go-gl-gl
   (let ((commit "69f74958bac0960e82e8ac5977ff073af29381ba")
         (revision "87"))
-- 
2.31.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]