Commit Graph

70 Commits

Author SHA1 Message Date
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
R. RyanTM
a015ebb48b
minetest: 5.9.0 -> 5.9.1 (#342183) 2024-09-16 13:45:58 +02:00
Edwin Mackenzie-Owen
e9761ca2ae minetest: add arg for using irrlicht's SDL backend
Irrlicht's SDL device (=backend) was enabled by default for the 5.9.0
pre-release, but was disabled again at the last minute before the
release due to issues reported by some users.

NOTE: the irrlicht device is a compile time option and cannot be
switched at runtime.
2024-08-12 22:08:25 +02:00
Edwin Mackenzie-Owen
d61c03fe46 minetest: 5.8.0 -> 5.9.0
* remove irrlichtmt input. Minetest's irrlicht fork has been moved into
  the minetest repo and is now statically linked.
* remove mesa from buildInputs for darwin. Otherwise startup fails with
  "OpenGL driver version is not 1.2 or better." and "Shaders are enabled
  but GLSL is not supported by the driver.". Presumably that happens
  because minetest tries to use an incomplete OpenGL driver from mesa
  instead of the drivers provided by macOS.
* remove withTouchSupport arg, as the upstream CMake option has been
  removed. Touch support should now always be enabled.
* make minetest-touch an alias for minetestclient
* remove unused args
2024-08-12 22:07:55 +02:00
K900
bde999c03e Merge branch 'master' into staging-next 2024-06-29 10:13:13 +03:00
Ryan Hendrickson
624fdb2662 minetest: use allowedVersions in updateScript 2024-06-25 17:45:57 -04:00
Emily
82c97b5cde minetest: fix build on Darwin
It wants a Mesa‐specific header for some reason, even though it
works without X11.
2024-06-22 18:06:51 +01:00
jopejoe1
3907a56673 minetest: add update script 2024-05-20 11:40:40 +02:00
Francesco Gazzetta
c64ebc8adf minetest: 5.7.0 -> 5.8.0, cleanup
* Inline the generic builder, since we don't build multiple versions
  anymore
* Remove unused patches, flags, and overrides
* Remove minetest_game, it has been debundled
* Use finalAttrs
* Use lib.cmake*
* Add a top-level attribute for the touch variant
* Define the server- and client-only variants through overrides in
  all-packages.nix
* Move the *_5 aliases to top-level/aliases.nix
* General cleanup

Closes #273207
2023-12-13 06:45:03 +00:00
Francesco Gazzetta
9dad8416be minetest: use lua5_1 if luajit is not supported 2023-07-09 13:10:19 +02:00
Arnav Vijaywargiya
569784d50b minetest: 5.6.1 -> 5.7.0 2023-04-09 12:16:28 +05:30
Artturin
f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
freezeboy
8a892ef883 minetest: put the app in $out/Applications/ to let it appear in /Applications/ 2022-11-26 15:03:43 +01:00
Weijia Wang
50d21e56fa minetest: fix build on darwin 2022-10-11 13:51:05 +02:00
Francesco Gazzetta
8c6f018766 minetest: update outdated broken expression 2022-09-27 11:29:49 +02:00
Francesco Gazzetta
2819931e41 minetest: add fgaz to maintainers 2022-09-27 09:47:40 +02:00
Francesco Gazzetta
aee300a6b5 minetest: 5.6.0 -> 5.6.1 2022-09-27 09:47:21 +02:00
Francesco Gazzetta
89e0447376 minetest: cleanup
* remove unused libraries
  https://dev.minetest.net/Changelog#5.5.0_.E2.86.92_5.6.0
  "Remove direct OpenGL(ES) dependency"
* remove IRRLICHTMC_INCLUDE_DIR
  it is now autodetected
* remove unused OpenGL_GL_PREFERENCE=GLVND
2022-08-15 11:28:24 +02:00
Danielle Hutzley
39f6700619 minetest: 5.5.1 -> 5.6.0 2022-08-13 11:51:49 +02:00
Aidan Gauland
53b1553a3f
minetest: Patch executable paths 2022-08-01 09:52:47 +12:00
Aidan Gauland
3a6dd06688
minetest: 5.5.0 -> 5.5.1 2022-08-01 09:35:18 +12:00
D Anzorge
273e32f1aa minetest: use irrlichtmt from Nixpkgs, add optional touch support
Touch support requires rebuilding irrlichtmt with touch support, which
upstream does not enable by default. Building Minetest with touch
support also disables the regular interface, so touch support defaults
to off.
2022-05-10 19:26:25 +02:00
Finn Behrens
6c9fe8eaa6 minetest: fix build on aarch64-darwin 2022-02-28 12:54:53 +01:00
Franz Pletz
b9bf0d43c2
Merge pull request #158134 from fpletz/pkgs/minetest-5.5 2022-02-09 15:15:55 +01:00
Dmitry Kalinkin
a9e24deb45
{minetestclient,minetestserver}_4: mark as broken on darwin 2022-02-06 00:40:02 -05:00
Franz Pletz
267fad119f
minetest: remove unused patches 2022-02-04 16:21:28 +01:00
Franz Pletz
6e78755eaf
minetest: 5.4.1 -> 5.5.0 2022-02-04 16:16:04 +01:00
Franz Pletz
2bbe6d7b8a
minetest: remove version 4 2022-02-04 16:16:04 +01:00
Eduardo Sánchez Muñoz
5a389e9fd4 minetest: 5.3.0 -> 5.4.1 2021-05-07 00:03:40 -04:00
Ben Siraphob
2e34288f0d pkgs/games: stdenv.lib -> lib 2021-01-15 13:36:04 +07:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
freezeboy
bda43779f6 minetest: 5.2.0 -> 5.3.0 2020-07-11 15:33:23 +02:00
ajs124
5dcb627751 minetest: 5.1.1 -> 5.2.0 2020-05-12 21:16:12 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Roman Plášil
3a3ccb106e Address PR comments 2020-02-28 18:50:12 +01:00
Roman Plášil
fb285f2153 minetest: update to 5.1.0 and build on Darwin 2020-02-28 18:50:12 +01:00
Franz Pletz
5a07f8ba2d
minetest: 5.1.0 -> 5.1.1 2020-01-30 22:35:35 +01:00
Robin Gloster
6ca6ac796b
treewide: configureFlags is a flat list 2019-12-31 01:37:49 +01:00
Robin Gloster
313da176d3
treewide: NIX_*_FLAGS -> string 2019-12-31 00:16:46 +01:00
adisbladis
c9d8624ccd
treewide: Get rid of libGLU_combined 2019-11-18 20:10:43 +00:00
MicrosoftTakeover
8479d2b54d
minetest 5.0.1 -> 5.1.0 2019-10-16 13:41:14 -07:00
volth
c814d72b51 treewide: name -> pname 2019-08-17 10:54:38 +00:00
volth
f3282c8d1e treewide: remove unused variables (#63177)
* treewide: remove unused variables

* making ofborg happy
2019-06-16 19:59:05 +00:00
Danny Bautista
f9073cd40c Change handle from c0dehero to pyrolagus 2019-06-07 18:34:21 -04:00
Franz Pletz
9fc62e5571
minetest: 5.0.0 -> 5.0.1 2019-04-02 12:02:39 +02:00
Jascha Geerds
ffedc3e4a9 misc: Remove myself from list of maintainers
Unfortunately I don't have the time anymore to maintain those
packages.
2019-03-12 23:50:52 +01:00
Franz Pletz
bc85062aa1
minetest: git-5.0.0-dev-2019-01-08 -> 5.0.0 2019-03-05 00:57:56 +01:00
Franz Pletz
4b95e496e1
minetest: refactor and add dev version 5 2019-01-10 05:51:01 +01:00
Franz Pletz
f88543769e
minetest: 0.4.17 -> 0.4.17.1 2018-11-23 17:48:14 +01:00
Edward Tjörnhammar
8ff9e78dc1
minetest: 0.4.16 -> 0.4.17 2018-11-11 12:47:09 +01:00