diff options
| author | Vineet Kumar <git@vineetk.net> | 2026-01-01 19:32:55 -0500 |
|---|---|---|
| committer | Vineet Kumar <git@vineetk.net> | 2026-01-01 19:35:26 -0500 |
| commit | a7a905c532c463e4304bcb097fa8712b068fba6a (patch) | |
| tree | be7c805cebab385ea7a4906ac4e5007f4f7a3c30 /epistemia | |
| parent | 71b1f4e8ba30b7c39992b4fcb79d03d20f4fe1ff (diff) | |
import part of minecraft.scm from gitlab:guix-gaming-channels/games
Diffstat (limited to 'epistemia')
| -rw-r--r-- | epistemia/packages/minecraft.scm | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/epistemia/packages/minecraft.scm b/epistemia/packages/minecraft.scm new file mode 100644 index 0000000..8802b9e --- /dev/null +++ b/epistemia/packages/minecraft.scm | |||
| @@ -0,0 +1,91 @@ | |||
| 1 | (define-module (epistemia packages minecraft) | ||
| 2 | #:use-module (guix build-system cmake) | ||
| 3 | #:use-module (gnu packages bash) | ||
| 4 | #:use-module (gnu packages compression) | ||
| 5 | #:use-module (gnu packages pulseaudio) | ||
| 6 | #:use-module (gnu packages qt) | ||
| 7 | #:use-module (gnu packages xorg) | ||
| 8 | #:use-module (gnu packages gl) | ||
| 9 | #:use-module (gnu packages java) | ||
| 10 | #:use-module (gnu packages kde-frameworks) | ||
| 11 | #:use-module (guix packages) | ||
| 12 | #:use-module (guix gexp) | ||
| 13 | #:use-module (guix git-download) | ||
| 14 | #:use-module ((guix licenses) :prefix license:) | ||
| 15 | #:use-module ((nonguix licenses) :prefix non-license:)) | ||
| 16 | |||
| 17 | (define-public prismlauncher | ||
| 18 | (package | ||
| 19 | (name "prismlauncher") | ||
| 20 | (version "9.2") | ||
| 21 | (source (origin | ||
| 22 | (method git-fetch) | ||
| 23 | (uri (git-reference | ||
| 24 | (url "https://github.com/PrismLauncher/PrismLauncher") | ||
| 25 | (recursive? #t) | ||
| 26 | (commit version))) | ||
| 27 | (file-name (git-file-name name version)) | ||
| 28 | (sha256 | ||
| 29 | (base32 | ||
| 30 | "16ra1cb8rc00cd2si3k7qmw8db3g0pf6n15aar60dh7kp9ig8jwb")))) | ||
| 31 | (build-system cmake-build-system) | ||
| 32 | (arguments | ||
| 33 | `(#:phases | ||
| 34 | (modify-phases %standard-phases | ||
| 35 | (add-after 'install 'patch-paths | ||
| 36 | (lambda* (#:key inputs outputs #:allow-other-keys) | ||
| 37 | (let* ((out (assoc-ref outputs "out")) | ||
| 38 | (bin (string-append out "/bin/prismlauncher")) | ||
| 39 | (xrandr (assoc-ref inputs "xrandr")) | ||
| 40 | (qtwayland (assoc-ref inputs "qtwayland")) | ||
| 41 | (qtsvg (assoc-ref inputs "qtsvg"))) | ||
| 42 | (wrap-program bin | ||
| 43 | `("PATH" ":" prefix (,(string-append xrandr "/bin"))) | ||
| 44 | `("QT_PLUGIN_PATH" ":" prefix ,(map (lambda (package) | ||
| 45 | (string-append package "/lib/qt6/plugins")) | ||
| 46 | (list qtwayland qtsvg))) | ||
| 47 | `("LD_LIBRARY_PATH" ":" prefix | ||
| 48 | (,@(map (lambda (dep) | ||
| 49 | (string-append (assoc-ref inputs dep) | ||
| 50 | "/lib")) | ||
| 51 | '("libx11" "libxext" "libxcursor" | ||
| 52 | "libxrandr" "libxxf86vm" "pulseaudio" "mesa"))))) | ||
| 53 | #t)))))) | ||
| 54 | (native-inputs (list extra-cmake-modules)) | ||
| 55 | (inputs (list bash-minimal ; for wrap-program | ||
| 56 | zlib | ||
| 57 | qtbase | ||
| 58 | qt5compat | ||
| 59 | qtnetworkauth | ||
| 60 | qtwayland | ||
| 61 | qtsvg | ||
| 62 | xrandr | ||
| 63 | libx11 | ||
| 64 | libxext | ||
| 65 | libxcursor | ||
| 66 | libxrandr | ||
| 67 | libxxf86vm | ||
| 68 | pulseaudio | ||
| 69 | mesa)) | ||
| 70 | (propagated-inputs (list `(,openjdk17 "jdk"))) | ||
| 71 | (home-page "https://prismlauncher.org/") | ||
| 72 | (synopsis "Free, open source launcher for Minecraft") | ||
| 73 | (description | ||
| 74 | "Allows you to have multiple, separate instances of Minecraft (each with | ||
| 75 | their own mods, texture packs, saves, etc), and helps you manage them and | ||
| 76 | their associated options with a simple interface.") | ||
| 77 | (license (list license:gpl3 ; PolyMC, launcher | ||
| 78 | license:expat ; MinGW runtime, lionshead, tomlc99 | ||
| 79 | license:lgpl3 ; Qt 5/6 | ||
| 80 | license:lgpl3+ ; libnbt++ | ||
| 81 | license:lgpl2.1+ ; rainbow (KGuiAddons) | ||
| 82 | license:isc ; Hoedown | ||
| 83 | license:silofl1.1 ; Material Design Icons | ||
| 84 | license:lgpl2.1 ; Quazip | ||
| 85 | license:public-domain ; xz-minidec, murmur2, xz-embedded | ||
| 86 | license:bsd-3 ; ColumnResizer, O2 (Katabasis fork), | ||
| 87 | ; gamemode, localpeer | ||
| 88 | license:asl2.0 ; classparser, systeminfo | ||
| 89 | ;; Batch icon set: | ||
| 90 | (non-license:nonfree "file://COPYING.md"))))) | ||
| 91 | |||
