Commit Graph

33 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
Felix Albrigtsen
5e9d51cecb
mudlet: Fix build on darwin (#281657)
* mudlet: Fix build on darwin

* mudlet: refactor installPhase

* mudlet: use upstream patch

* mudlet: fix build on x86_64-darwin

---------

Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>
2024-01-21 05:45:08 +01:00
h7x4
12315f53ff treewide: add mainProgram 2023-11-24 21:01:03 +01:00
Daniel McCarney
bc9d28d808
mudlet: 4.17.0 -> 4.17.2
Updates Mudlet from v4.17.0 to v4.17.2. See the upstream release
notes[0] for more information.

Notably this commit also fixes missing translation files that would
prevent the built Mudlet from using certain Geyser UI elements (e.g.
localized `AdjustableContainer` instances).

[0]: https://github.com/Mudlet/Mudlet/releases/tag/Mudlet-4.17.2
2023-05-14 11:07:45 -04:00
Daniel McCarney
fcb4e6e189
mudlet: 4.16.0 -> 4.17.0
Updates Mudlet from v4.16.0 to v4.17.0. See the upstream release
notes[0] for more information.

[0]: https://github.com/Mudlet/Mudlet/releases/tag/Mudlet-4.17.0
2023-03-19 09:02:36 -04:00
Daniel McCarney
ae5ed8ce22 mudlet: 4.15.1 -> 4.16.0
This commit updates Mudlet from version 4.15.1 to 4.16.0. This requires
fixing a lua 5.1 compatibility regression in luasql-sqlite3 by using
a packageOverride to set the version to a commit before the regression.
This resolves an "undefined symbol: lua_isinteger" error that will
occur at application runtime otherwise.

Similarly, prior to this commit running Mudlet would produce errors in
the console window related to not finding the required `.so` for the
Discord integration to function.

This commit also wires through the required `libdiscord-rpc.so` from the
discord-rpc package. On startup Mudlet now prints:
> Discord integration loaded. Using functions from: "libdiscord-rpc.so"
2022-11-07 12:36:05 -05:00
K900
0ff0b14968 treewide: more cmake rpath fixups 2022-07-17 17:42:15 +03:00
Naïm Favier
9160044f5f
treewide/makeWrapper: replace --run cd with --chdir
Lay the groundwork for switching to binary wrappers by reducing uses
of `--run` (which is not supported by `makeBinaryWrapper`).
2022-03-19 09:46:31 +01:00
R. RyanTM
3ddc71525f
mudlet: 4.12.0 -> 4.15.1
* mudlet: 4.12.0 -> 4.15.0 (#159587)

* mudlet: use SPDX3 license identifier
and refactor

* mudlet: 4.15.0 -> 4.15.1
and add Lua env vars to Qt wrapper

Co-authored-by: Renaud <c0bw3b@users.noreply.github.com>
2022-02-18 18:52:26 +01:00
Vadim Peretokin
27ab5f06e4
Update homepage to https (#152264) 2021-12-26 13:52:04 -05:00
Matthieu Coudron
e9c921a301 mudlet: remove unneeded LUA_CPATH 2021-09-12 02:21:57 +02:00
Philipp
520ce89b29
mudlet: 4.9.1 -> 4.12.0 (#126121)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-07-15 18:17:51 +02: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
Ben Siraphob
3ae5e6ce03 treewide: remove enableParallelBuilding = true if using cmake 2021-01-03 18:37:40 +07:00
Philipp
9f2d920c35
mudlet: 4.3 -> 4.9.1 2020-06-18 19:15:31 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Philipp
fc473f38d0 mudlet: 4.1.2 -> 4.3 2019-12-07 22:14:14 +01:00
Philipp
a26445a2dd mudlet: 4.0.3 -> 4.1.2 2019-09-13 14:44:13 +03:00
Philipp
3b5b9a73f5 mudlet: 3.0.0-delta -> 4.0.3
Fixed broken package.
2019-09-07 23:05:55 +09:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Alexei Robyn
274715cbc3 luaPackages: Replace all rockspec packages with generated ones
luaPackages replaced by generated ones:
- bit32
- compat53
- cqueues
- luacyrussasl -> cyrussasl (luarocks name)
- luaexpat
- luadbi -> luadbi front-end module + separate backend modules
  luadbi-{mysql,postgresql,sqlite3}
- luafilesystem
- luaossl
- luasec
- luasocket
- luastdlib -> stdlib (luarocks name)
- lrexlib -> lrexlib-pcre (we already have lrexlib-gnu and
  lrexlib-posix, lrexlib-pcre however appears to be the variant used in
  mudlet, which is the only current dep in nixpkgs)
- luasqlite -> luasql-sqlite3 (luarocks name)
- lfs -> luafilesytem (we literally had two manually written
  luafilesystem expressions, under different names)

Changes and additions to overrides to generated luarocks packgaes,
including:
- busted: Install bash completions along with the zsh ones
- cqueues:
    - Perform minor surgery on the rockspec to allow using a single
      rockspec to build for all supported Lua versions
    - Add a patch by @vcunat to work around a build issue
- luuid: Wrote a tiny patch to allow for Lua 5.1/Luajit compatibility
- General changes:
    - Sorted the packages
    - Attempted to make the formatting consistent
    - Preferenced `.override` instead of `.overrideAttrs` wherever
      possible

Minor changes to other packages to adjust for the Lua package changes:
- luakit expression simplified
- prosody expression simplified; but users will now need to specify the
  luadbi backend module they intend to use in withExtraLibs
- knot-resolver inputs correctd
- mudlet inputs corrected (although this package was and should still be
  broken)
2019-06-14 13:17:15 +10:00
Orivej Desh
fb703ad117 treewide: update the usage of makeWrapper after #31497 2017-11-19 23:50:49 +00:00
Thomas Tuegel
210f688802
qt5: rename qmakeHook to qmake 2017-06-18 08:41:57 -05:00
Thomas Tuegel
8ffaef8a69 mudlet: mark broken 2016-05-09 10:01:49 -05:00
Nikolay Amiantov
02014ea0aa mudlet: move to qmakeHook 2016-04-20 18:55:54 +03:00
Thomas Tuegel
5ecc06293a mudlet: build with Qt 5.5 2015-09-27 15:09:47 -05:00
Thomas Tuegel
5d1f6ad57c qt5: make qt-5.4.1 default 2015-03-24 17:14:56 -05:00
wyvie
629357c04a mudlet version 2015-02-02 16:50:39 +03:00
wyvie
d4b7910f80 Added more lua modules to lua-packages, added them as dependencies for
mudlet

Closes #4269
2014-09-30 07:42:19 +01:00
Domen Kožar
6e8056ada9 further improvements to buildLuaPackage 2014-09-23 13:56:46 +02:00
wyvie
e6eb51496b Added luaPackages, moved lua sockets and lua filesystem to luaPackages, fixed mudlet deps 2014-09-23 13:56:45 +02:00
wyvie
a3effead90 Added myself as maintainer 2014-09-21 00:45:31 +01:00
wyvie
c891dd2719 new package: mudlet-3.0
Closes #4095
2014-09-21 00:45:31 +01:00