summary refs log tree commit diff
path: root/gnu/packages/toys.scm
diff options
context:
space:
mode:
authorSarthak Shah <shahsarthakw@gmail.com>2024-02-17 17:12:19 +0000
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2024-02-22 16:12:21 +0100
commitbbce1e0274572ec01e85c91a5facea577c8a3929 (patch)
treebe00f13ef941129f5f134190dd0cd65985c4f4e8 /gnu/packages/toys.scm
parent7fb77a5b7235611f0d832600064b55104116603e (diff)
downloadguix-bbce1e0274572ec01e85c91a5facea577c8a3929.tar.gz
gnu: Add xfishtank.
* gnu/packages/toys.scm (xfishtank): New variable.

Reviewed-by: Greg Hogan <code@greghogan.com>
Reviewed-by: Steve George <steve@futurile.net>
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>

Change-Id: I490fba2d9ded274266d6376adf67c39bf5c9744a
Diffstat (limited to 'gnu/packages/toys.scm')
-rw-r--r--gnu/packages/toys.scm37
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/toys.scm b/gnu/packages/toys.scm
index 5dcbfc4d23..576e439ea6 100644
--- a/gnu/packages/toys.scm
+++ b/gnu/packages/toys.scm
@@ -434,6 +434,43 @@ and various scenery elements.")
 flying and falling on the desktop, using windows as run paths.")
     (license license:gpl2+)))
 
+(define-public xfishtank
+  (package
+    (name "xfishtank")
+    (version "3.2.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://www.ratrabbit.nl/downloads/xfishtank/xfishtank-"
+             version "~pre1.tar.gz"))
+       ;; Version has ~pre1 in it.  Guix store does not allow tilde in file
+       ;; names.  Save it in the Store using a hyphen.
+       (file-name (string-append name "-" version "-pre1.tar.gz"))
+       (sha256
+        (base32 "16i9diawkmar6dhx5xn0mflr2h585gamab6137hvxzgaczx55lwp"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'configure 'fix-install-path
+            (lambda _
+              ;; Install program to bin/ instead of games/.
+              (substitute* "src/Makefile.in"
+                (("(gamesdir = \\$\\(exec_prefix\\)/)games" _ prefix)
+                 (string-append prefix "bin"))))))))
+    (inputs
+     (list gtk+ libx11 libxml2 libxpm libxt))
+    (native-inputs
+     (list pkg-config))
+    (home-page
+     "https://www.ratrabbit.nl/ratrabbit/software/xfishtank/index.html")
+    (synopsis "Let fish swim over your desktop!")
+    (description "Xfishtank is a vintage application that uses the X11
+protocol.  It shows fishes swimming over the desktop.")
+    (license (list license:expat license:gpl3+))))
+
 (define-public nyancat
   (package
     (name "nyancat")