summaryrefslogtreecommitdiff
path: root/sigils/packages/minecraft.scm
blob: 921c9b2f9c31e4340b3c5b4af7a045dc1191ea6a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
(define-module (sigils packages minecraft)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix gexp)
  #:use-module ((guix licenses)
                #:prefix license:)
  ;; fjord-launcher
  #:use-module (guix build-system cmake)
  #:use-module (gnu packages kde-frameworks)
  #:use-module (gnu packages qt)
  #:use-module (gnu packages markup)
  #:use-module (gnu packages cpp)
  #:use-module (gnu packages compression)
  #:use-module (gnu packages gl)
  #:use-module (gnu packages xdisorg)
  #:use-module (gnu packages vulkan)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages man)
  #:use-module (gnu packages java))

;;; FjordLauncher

(define with-qt6
  (package-mapping (lambda (p)
                     (package
                       (inherit p)
                       (inputs (modify-inputs (package-inputs p)
                                 (replace "qtbase" qtbase)
                                 (append qt5compat)))))
                   (lambda _
                     #t)))

(define-public fjordlauncher
  (package
    (name "fjordlauncher")
    (version "8.4.1")
    (source
     (origin
       (method url-fetch)
       (uri (string-append
             "https://github.com/unmojang/FjordLauncher/releases/download/"
             version "/FjordLauncher-" version ".tar.gz"))
       (sha256
        (base32 "100q9sgimcvi9k8290z01hdb9p96pa5prq8ifzjz22iba9hf43x1"))))
    (build-system cmake-build-system)
    (native-inputs (list extra-cmake-modules vulkan-headers pkg-config scdoc))
    (inputs (list qtbase
                  qt5compat
                  cmark
                  zlib
                  libglvnd
                  gulrak-filesystem
                  ;; no toml++ because they bundled it with an older version
                  (with-qt6 quazip)
                  `(,openjdk17 "jdk")
                  libxkbcommon))
    (arguments
     (list
      #:tests? #f
      #:configure-flags #~'("-DBUILD_TESTING=yes"
                            "-DLauncher_APP_BINARY_NAME=fjordlauncher"
                            "-DLauncher_BUILD_PLATFORM=Guix"
                            "-DLauncher_QT_VERSION_MAJOR=6")))
    (home-page "https://github.com/unmojang/FjordLauncher")
    (synopsis "Prism Launcher fork with support for alternative auth servers")
    (description
     "Fjord Launcher is a fork of Prism Launcher. It was based on PollyMC, which is now unmaintained. It is not endorsed by or affiliated with Prism Launcher or PollyMC.")
    (license license:gpl3)))