Commit Graph

79 Commits

Author SHA1 Message Date
R. Ryantm
caf070fb8e hmcl: 3.16.2 -> 3.16.3 2026-07-31 09:26:50 +00:00
whispers
82e0078428 hm: apply upstream patch for gcc 16
GCC 16 has better analysis of unused variables than previous versions.
Since HM builds with -Werror by default, this causes a build failure, so
we fetch the commit that fixed this issue upstream.

We elected to take a patch instead of suppressing the error (with
-Wno-error=…) since patches will be removed on the next update while
flags often sit untouched and unnoticed long after they're necessary.
2026-07-27 18:00:13 -04:00
Rine Amakawa
6e3f8c5fd1 hmcl: 3.15.3 -> 3.16.2
Changelog: https://docs.hmcl.net/changelog/stable.html
2026-07-23 10:12:34 +09:00
R. Ryantm
684605e11c hmcl: 3.15.2 -> 3.15.3 2026-07-13 03:41:31 +00:00
R. Ryantm
2e44e86fdb hmcl: 3.15.1 -> 3.15.2 2026-06-25 18:26:29 +00:00
R. Ryantm
ea6e677162 hmcl: 3.14.1 -> 3.15.1 2026-06-16 23:14:52 +00:00
R. Ryantm
5bfd15a4a6 hmcl: 3.13.2 -> 3.14.1 2026-05-21 01:43:54 +00:00
R. Ryantm
45619258ea hmcl: 3.12.4 -> 3.13.2 2026-04-25 18:26:33 +00:00
ccicnce113424
38704fd7ae hmcl: add libxkbcommon and jdk 25, don't use system glfw by default
LWJGL uses its own glfw fork, and Minecraft 26.1 will crash if you use
the system one.

For those who prefer to use Wayland, you can add `-DMC_DEBUG_ENABLED`
and `-DMC_DEBUG_PREFER_WAYLAND` on JVM arguments to enable Wayland
support, and LWJGL requires libxkbcommon to work on Wayland.

For those who still need system glfw, you can enable it in the advanced
settings of HMCL.
2026-04-19 12:51:16 +08:00
R. Ryantm
c582c8f892 hmcl: 3.12.2 -> 3.12.4 2026-04-09 07:03:09 +00:00
Moraxyc
5629befb53 hmcl: 3.11.2 -> 3.12.2 2026-03-25 17:44:52 +08:00
R. Ryantm
b9270aba23 hmcl: 3.11.1 -> 3.11.2 2026-03-06 17:59:03 +00:00
Sizhe Zhao
22a4a55dff hmcl: only use glfw3-minecraft for linux 2026-02-25 11:06:37 +08:00
Moraxyc
7749abf7ba hmcl: 3.10.3 -> 3.11.1
Diff: https://github.com/HMCL-dev/HMCL/compare/v3.10.3...v3.11.1

Changelog: https://docs.hmcl.net/changelog/stable.html
2026-02-16 21:07:33 +08:00
Sizhe Zhao
d1c15b7d58 hmcl: 3.10.2 -> 3.10.3 (#489298) 2026-02-16 02:09:13 +00:00
Sizhe Zhao
326d938290 hmcl: support wayland for game instances (#488585) 2026-02-12 01:56:12 +00:00
Moraxyc
da16f44b12 hmcl: 3.10.2 -> 3.10.3
Diff: https://github.com/HMCL-dev/HMCL/compare/v3.10.2...v3.10.3

Changelog: https://docs.hmcl.net/changelog/stable.html
2026-02-11 10:51:43 +08:00
Sizhe Zhao
6b06873e9f hmcl: 3.9.2 -> 3.10.2 (#486845) 2026-02-09 05:52:30 +00:00
LuoChen
f0cbdac3ab hmcl: support wayland for game instances
Replaces `glfw` with `glfw3-minecraft` and forces LWJGL to use the system GLFW library when running on Wayland. This improves compatibility for Minecraft instances on Wayland compositors.
2026-02-09 12:51:20 +08:00
quantenzitrone
d26a1a9e5e various: switch buildRustPackage packages to use finalAttrs
this shouldn't create any rebuilds

the following script was used to generate this:
```fish
#!/usr/bin/env fish

# nix shell .#nixfmt nixpkgs#{nixf-diagnose,ripgrep,sd}

set base (git rev-parse HEAD)

set scope pkgs/by-name
set builder buildRustPackage

set files (rg --files-with-matches -F "$builder rec {" $scope | sort -u)

for file in $files
    echo $file
    sd -F "$builder rec {" "$builder (finalAttrs: {" $file
    # version
    sd -F 'version}' 'finalAttrs.version}' $file
    sd -F '${version' '${finalAttrs.version' $file
    sd -F '= version' '= finalAttrs.version' $file
    sd -F 'inherit version;' 'inherit (finalAttrs) version;' $file
    sd -F ' + version;' ' + finalAttrs.version;' $file
    sd 'replaceStrings (.*) version' 'replaceStrings $1 finalAttrs.version' $file
    sd -F 'splitVersion version' 'splitVersion finalAttrs.version' $file
    sd -F 'versionAtLeast version' 'versionAtLeast finalAttrs.version' $file
    sd 'versions\.([a-z]+) version' 'versions.$1 finalAttrs.version' $file
    # src
    sd -F 'src}' 'finalAttrs.src}' $file
    sd -F '${src' '${finalAttrs.src' $file
    sd -F '= src' '= finalAttrs.src' $file
    sd -F 'inherit src;' 'inherit (finalAttrs) src;' $file
    sd -F 'inherit (src' 'inherit (finalAttrs.src' $file
    # meta
    sd -F '${meta' '${finalAttrs.meta' $file
    sd -F '= meta' '= finalAttrs.meta' $file
    sd -F 'inherit (meta' 'inherit (finalAttrs.meta' $file
    # other
    sd -F 'inherit version src;' 'inherit (finalAttrs) version src;' $file
    sd -F 'inherit src version;' 'inherit (finalAttrs) src version;' $file
    sd -F 'makeLibraryPath buildInputs' 'makeLibraryPath finalAttrs.buildInputs' $file
    sd -F 'buildInputs}' 'finalAttrs.buildInputs}' $file
    sd -F 'desktopItem}' 'finalAttrs.desktopItem}' $file
    sd -F 'runtimeLibs}' 'finalAttrs.runtimeLibs}' $file
    sd -F 'libPath}' 'finalAttrs.libPath}' $file
    sd -F 'runtimeDependencies}' 'finalAttrs.runtimeDependencies}' $file
    sd -F 'nativeRuntimeInputs}' 'finalAttrs.nativeRuntimeInputs}' $file
    sd -F '(!doCheck)' '(!finalAttrs.doCheck)' $file
    sd -F 'optional doCheck' 'optional finalAttrs.doCheck' $file
    sd -F 'optionals doCheck' 'optionals finalAttrs.doCheck' $file
    sd -F '++ runtimeDependencies' '++ finalAttrs.runtimeDependencies' $file
    # pname (restored afterwards)
    sd -F 'pname}' 'finalAttrs.pname}' $file
    sd -F '${pname' '${finalAttrs.pname' $file
    sd -F '= pname' '= finalAttrs.pname' $file
    # close finalAttrs lambda
    echo ')' >>$file
    # catch some errors early
    if ! nixfmt $file
        git restore $file
        continue
    end
    if ! nixf-diagnose -i sema-primop-overridden $file
        git restore $file
        continue
    end
end

set torestore (rg -F .finalAttrs --files-with-matches $scope)
if test (count $torestore) -gt 0
    git restore $torestore
end
set torestore (rg -F finalAttrs.pname --files-with-matches $scope)
if test (count $torestore) -gt 0
    git restore $torestore
end

# commit for faster eval times
git add pkgs
git commit --no-gpg-sign -m temp
set torestore

for file in $files
    # file hasn't changed
    if git diff --quiet $base $file
        continue
    end
    # try to eval the package to definitely catch all errors
    echo $file
    set pname (string split / $file -f 4)
    if ! nix eval .#$pname
        set torestore $torestore $file
    end
end

# restore files that don't eval
git reset --soft $base
git restore --staged .
if test (count $torestore) -gt 0
    git restore $torestore
end
```

after that some manual cleanup was done:
- restoring files that cause changes in the number of lines
- restoring files that cause rebuilds
- restoring files that cause merge conflicts with staging
2026-02-07 09:53:17 +01:00
Moraxyc
279a22c6d1 hmcl: 3.9.2 -> 3.10.2 2026-02-04 15:45:41 +08:00
Sizhe Zhao
ad3e3cb1c0 hmcl: add wayland support (via gtk3) (#483903) 2026-01-28 16:06:49 +00:00
LuoChen
6b64768821 hmcl: add wayland support (via gtk3) 2026-01-26 16:15:43 +08:00
quantenzitrone
7d8132a92c treewide: remove references to the xorg namespace in pkgs (automated)
this creates some eval errors that will be fixed in the next commit

done with the following script:

```fish
\#!/usr/bin/env fish

set packagesjson (nix eval --impure --json --expr '
let
  lib = import ./lib;
in
import pkgs/servers/x11/xorg/default.nix (lib.mapAttrs (
  name: _:
  if name == "lib" then
    lib
  else if name == "config" then
    { allowAliases = false; }
  else
    name
) (__functionArgs (import pkgs/servers/x11/xorg/default.nix))) { }
' | jq)

set one (grep '^    [A-Za-z0-9_-]*$' pkgs/servers/x11/xorg/default.nix | string trim | string replace -r '$' Z | sort | string sub -e -1)
set two (grep '^  [A-Za-z0-9_-]* = [A-Za-z0-9_-]*;$' pkgs/servers/x11/xorg/default.nix | cut -d= -f1 | string trim | string replace -r '$' Z | sort | string sub -e -1)

for arg in $one $two
    set oname $arg
    set nname (echo $packagesjson | jq -r .$oname)

    if test $nname = null
        echo (set_color red)warn:(set_color normal) unknown package xorg.$oname >&2
        continue
    end

    echo $oname "->" $nname

    # replace basic xorg.$name references
    for file in (rg -F "xorg.$oname" --files-with-matches pkgs)
        # special cases
        sd -F "$oname = xorg.$oname;" "$nname = $nname;" $file

        # replace
        sd -F "xorg.$oname" "$nname" $file

        # fixup function arguments

        # prevent duplicate function args
        if grep -E " ($oname|$nname),\$" $file >/dev/null
            continue
        end

        if grep 'xorg\..' $file >/dev/null # case1: there is more so we can't just remove the function arg

            if grep ' xorg,$' $file >/dev/null
                sd ' xorg,$' " xorg,
                $nname," $file

            else if grep ' xorg ? .*,$' $file >/dev/null
                sd 'xorg( ? .*),$' "xorg\$1,
                $nname," $file

            else
                sd -F 'xorg,' "$nname,
                xorg," $file
            end

        else # case there is no more xorg..* so we can just replace the function arg
            sd 'xorg(| ? .*),.*$' "$nname," $file
        end
    end
end

nix fmt
```
2026-01-25 22:28:09 +01:00
jopejoe1
68f5558c0d hm: fix update script 2026-01-22 21:19:58 +01:00
R. Ryantm
b459481b89 hmcl: 3.9.1 -> 3.9.2 2026-01-14 23:44:42 +00:00
Misaka13514
d66987ae5c hmcl: add xrandr to PATH for LWJGL 2 support 2026-01-09 11:28:44 +08:00
Misaka13514
1f73ec6c08 hmcl: 3.8.2 -> 3.9.1 2026-01-08 13:26:04 +08:00
Misaka13514
e8cbb100e8 hmcl: add Misaka13514 to maintainers 2026-01-08 13:25:37 +08:00
Moraxyc
fdd4a22360 hmcl: 3.8.1 -> 3.8.2 2025-12-24 17:56:05 +00:00
Moraxyc
ee53e87c93 hmcl: 3.7.6 -> 3.8.1 2025-11-28 18:42:44 +00:00
aleksana
0e3b99e22e hmcl: refactor and make available on darwin 2025-11-27 09:16:57 +08:00
aleksana
ab9788d65b hmcl: add patch jar to fix terracotta 2025-11-26 23:45:14 +08:00
Aleksana
225d24ae48 hmcl: 3.6.18 -> 3.7.6 (#456356) 2025-11-26 04:28:34 +00:00
Daniels Šatcs
b99f95e158 hmcl: 3.6.18 -> 3.7.6
Co-authored-by: Moraxyc Xu <i@moraxyc.com>
2025-11-26 09:42:58 +08:00
qbisi
dd92b9d35c hmat-oss: fix build on darwin 2025-11-21 09:29:24 +08:00
Michael Daniels
eb833639c8 treewide: drop figsoda as maintainer (part 1)
s/maintainers = with lib.maintainers; [ figsoda ];/maintainers = with lib.maintainers; [ ];/
2025-11-02 20:16:11 -05:00
nixpkgs-ci[bot]
cafa6300b3 Merge master into staging-next 2025-10-02 06:56:15 +00:00
R. Ryantm
4338d80ba3 hmcl: 3.6.17 -> 3.6.18 2025-10-01 16:56:15 +00:00
jopejoe1
817d2f574e hm: fix build with newer clang 2025-09-27 11:11:05 +02:00
R. Ryantm
fd6bbfa5e9 hmcl: 3.6.16 -> 3.6.17 2025-09-20 15:20:32 +00:00
jopejoe1
a5d1ac2a71 hm: remove msee4.1 compile options 2025-09-19 13:50:05 +02:00
jopejoe1
e938ba4da9 hm: init at 18.0 2025-09-16 10:55:55 +02:00
R. Ryantm
f4542bbc9d hmcl: 3.6.15 -> 3.6.16 2025-08-29 06:49:22 +00:00
TomaSajt
398b16e16c treewide: remove useFetchCargoVendor usages 2025-07-26 11:39:35 +02:00
R. Ryantm
be0aa91087 hmcl: 3.6.14 -> 3.6.15 2025-07-24 13:58:08 +00:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
R. Ryantm
e8ff439e4e hmcl: 3.6.13 -> 3.6.14 2025-07-16 01:41:53 +00:00
R. Ryantm
28b15dd597 hmcl: 3.6.12 -> 3.6.13 2025-07-06 19:47:37 +00:00
Moraxyc
9bd5502f42 hmcl: add myself as maintainer 2025-07-02 20:11:59 +08:00