Skip to content

Commit

Permalink
minetest: rename to luanti
Browse files Browse the repository at this point in the history
Moved to pkgs/by-name
Added and updated aliases
Added release note
  • Loading branch information
06kellyjac committed Nov 12, 2024
1 parent 4c6c098 commit bc1b028
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 24 deletions.
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2411.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@

- `headscale` has been updated to version 0.23.0 which reworked large parts of the configuration, including DNS, Magic DNS prefixes and ACL policy files. See the [upstream changelog](https://github.com/juanfont/headscale/releases/tag/v0.23.0) for details.

- `minetest` has been renamed to `luanti` to match the upstream name change but aliases have been added. The new name hasn't resulted in many changes as of yet but older references to minetest should be sunset. See the [new name announcement](https://blog.minetest.net/2024/10/13/Introducing-Our-New-Name/) for more details.

- `nginx` package no longer includes the `gd` and `geoip` dependencies. To re-enable them, override `nginx` with the options `withImageFilter = true;` and `withGeoIP = true;`.

- `systemd.enableUnifiedCgroupHierarchy` has been removed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,15 @@
libiconv,
ninja,
prometheus-cpp,
OpenGL,
OpenAL ? openal,
Carbon,
Cocoa,
Kernel,
darwin,
buildClient ? true,
buildServer ? true,
SDL2,
useSDL2 ? false,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "minetest";
pname = "luanti";
version = "5.10.0";

src = fetchFromGitHub {
Expand All @@ -69,7 +65,7 @@ stdenv.mkDerivation (finalAttrs: {
# Remove when https://github.com/NixOS/nixpkgs/issues/144170 is fixed
(lib.cmakeFeature "CMAKE_INSTALL_BINDIR" "bin")
(lib.cmakeFeature "CMAKE_INSTALL_DATADIR" "share")
(lib.cmakeFeature "CMAKE_INSTALL_DOCDIR" "share/doc/minetest")
(lib.cmakeFeature "CMAKE_INSTALL_DOCDIR" "share/doc/luanti")
(lib.cmakeFeature "CMAKE_INSTALL_MANDIR" "share/man")
(lib.cmakeFeature "CMAKE_INSTALL_LOCALEDIR" "share/locale")

Expand Down Expand Up @@ -97,11 +93,11 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optional (lib.meta.availableOn stdenv.hostPlatform luajit) luajit
++ lib.optionals stdenv.hostPlatform.isDarwin [
libiconv
OpenGL
OpenAL
Carbon
Cocoa
Kernel
darwin.apple_sdk.frameworks.OpenGL
darwin.apple_sdk.frameworks.OpenAL
darwin.apple_sdk.frameworks.Carbon
darwin.apple_sdk.frameworks.Cocoa
darwin.apple_sdk.frameworks.Kernel
]
++ lib.optionals buildClient [
libpng
Expand Down Expand Up @@ -135,7 +131,7 @@ stdenv.mkDerivation (finalAttrs: {
''
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
mkdir -p $out/Applications
mv $out/minetest.app $out/Applications
mv $out/luanti.app $out/Applications
'';

doCheck = true;
Expand All @@ -146,15 +142,15 @@ stdenv.mkDerivation (finalAttrs: {
};

meta = with lib; {
homepage = "https://minetest.net/";
description = "Infinite-world block sandbox game";
homepage = "https://www.luanti.org/";
description = "An open source voxel game engine (formerly Minetest)";
license = licenses.lgpl21Plus;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [
pyrolagus
fpletz
fgaz
];
mainProgram = if buildClient then "minetest" else "minetestserver";
mainProgram = if buildClient then "luanti" else "luantiserver";
};
})
9 changes: 6 additions & 3 deletions pkgs/top-level/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -768,9 +768,12 @@ mapAliases {
MIDIVisualizer = midivisualizer; # Added 2024-06-12
mikutter = throw "'mikutter' has been removed because the package was broken and had no maintainers"; # Added 2024-10-01
mime-types = mailcap; # Added 2022-01-21
minetest-touch = minetestclient; # Added 2024-08-12
minetestclient_5 = minetestclient; # Added 2023-12-11
minetestserver_5 = minetestserver; # Added 2023-12-11
minetest = luanti; # Added 2024-11-11
minetestclient = luanticlient; # Added 2024-11-11
minetestserver = luantiserver; # Added 2024-11-11
minetest-touch = luanticlient; # Added 2024-08-12
minetestclient_5 = luanticlient; # Added 2023-12-11
minetestserver_5 = luantiserver; # Added 2023-12-11
minizip2 = pkgs.minizip-ng; # Added 2022-12-28
mod_dnssd = throw "'mod_dnssd' has been renamed to/replaced by 'apacheHttpdPackages.mod_dnssd'"; # Converted to throw 2024-10-17
mod_fastcgi = throw "'mod_fastcgi' has been renamed to/replaced by 'apacheHttpdPackages.mod_fastcgi'"; # Converted to throw 2024-10-17
Expand Down
7 changes: 2 additions & 5 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17292,11 +17292,8 @@ with pkgs;
minecraftServers = import ../games/minecraft-servers { inherit callPackage lib javaPackages; };
minecraft-server = minecraftServers.vanilla; # backwards compatibility

minetest = callPackage ../games/minetest {
inherit (darwin.apple_sdk.frameworks) OpenGL OpenAL Carbon Cocoa Kernel;
};
minetestclient = minetest.override { buildServer = false; };
minetestserver = minetest.override { buildClient = false; };
luanticlient = luanti.override { buildServer = false; };
luantiserver = luanti.override { buildClient = false; };

mnemosyne = callPackage ../games/mnemosyne {
python = python3;
Expand Down

0 comments on commit bc1b028

Please sign in to comment.