...
authoralex <[email protected]>
Sat, 24 Jun 2023 19:40:30 +0000 (12:40 -0700)
committeralex <[email protected]>
Sat, 24 Jun 2023 19:40:30 +0000 (12:40 -0700)
osu.scm

diff --git a/osu.scm b/osu.scm
index ad98b215d8ce8fb8081b86e277ee950d4a60443e..981b92260de509f01e9422a391fe5f90fd3fe80c 100644 (file)
--- a/osu.scm
+++ b/osu.scm
@@ -1,5 +1,6 @@
 (define-module (infiniteadaptability packages osu)
   #:use-module (guix download)
+  #:use-module (guix gexp)
   #:use-module (nonguix build-system binary)
   #:use-module (guix licenses)
   #:use-module (guix packages))
       (version version)
       (source (origin
                 (method url-fetch)
-               (uri (string-append "https://github.com/ppy/osu/releases/download/"
-                                   version
-                                   "/osu.AppImage"))
+                (uri (string-append
+                      "https://github.com/ppy/osu/releases/download/" version
+                      "/osu.AppImage"))
                 (sha256
                  (base32
                   "0qjri6rjzlfxlphx0v7ydi19c7ai3bblyn9d22ij75glgm75n0a0"))))
       (build-system binary-build-system)
       (arguments
-       (list #:phases
-             #~(modify-phases %standard-phases
-                 (add-after 'install 'symlink-binary-file-and-cleanup
-                       (lambda _
-                         (delete-file (string-append #$output "/environment-variables"))
-                         (mkdir-p (string-append #$output "/bin")))))))
+       (list #:phases #~(modify-phases %standard-phases
+                       (delete 'strip-binaries)
+                       (delete 'validate-runpath)
+                       (delete 'make-dynamic-linker-cache)
+                          (add-after 'install 'symlink-binary-file-and-cleanup
+                            (lambda _
+                              (delete-file (string-append #$output
+                                            "/environment-variables"))
+                              (chmod (string-append #$output "/osu.AppImage")
+                                     #o755)
+                              (mkdir-p (string-append #$output "/bin"))
+                              (symlink (string-append #$output "/osu.AppImage")
+                                       (string-append #$output "/bin/osu")))))))
       (home-page "https://osu.ppy.sh/home")
       (synopsis "The bestest free-to-win rhythm game")
       (description "osu!")