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