(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!")