Subject: [PATCH]Add xclock

From: Yoshinori Arai <[email-masked]>
Date: Thu, 31 Jan 2019 11:55:01 +0900

Hello, my first patch.
gnu: Add xclock

1 file changed, 30 insertions(+)
gnu/packages/xdisorg.scm | 30 ++++++++++++++++++++++++++++++

modified   gnu/packages/xdisorg.scm
@@ -294,6 +294,36 @@ between desktops, and change the number of desktops.")
 following the mouse.")
     (license license:x11)))
 
+(define-public xclock
+  (package
+    (name "xclock")
+    (version "1.0.7")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://www.x.org/releases/individual/app/"
+                           name "-" version ".tar.bz2"))
+       (sha256
+        (base32 "1l3xv4bsca6bwxx73jyjz0blav86i7vwffkhdb1ac81y9slyrki3"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:configure-flags
+       (list (string-append "--with-appdefaultdir="
+                            %output ,%app-defaults-dir))))
+    (inputs
+     `(("libxmu" ,libxmu)
+       ("libx11" ,libx11)
+       ("libxaw" ,libxaw)
+       ("libxrender" ,libxrender)
+       ("libxft" ,libxft)
+       ("libxkbfile" ,libxkbfile)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (home-page "https://www.x.org/")
+    (synopsis "Analog / digital clock for X")
+    (description "The xclock program displays the time in analog or digital
+ form.")
+    (license license:x11)))
 
 (define-public pixman
   (package