Commit Graph

15 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
aleksana
ac27f7cab1 treewide: remove unused copyDesktopItems from some packages 2024-04-13 04:20:50 +08:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Weijia Wang
8fd3e5e331 ecwolf: add darwin support 2023-02-06 16:05:19 +01:00
Jason Yundt
7e82811db2 ecwolf: 1.4.0 -> 1.4.1
Release announcement: <https://maniacsvault.net/entry92>
Changelog: <https://maniacsvault.net/ecwolf/wiki/Version_history#2023>
2023-02-06 07:39:15 -05:00
Jason Yundt
d3bb475232 ecwolf: fix executable not being added to PATH
Co-authored-by: Guillaume Girol <symphorien+git@xlumurb.eu>
2023-02-04 13:49:15 -05:00
Jason Yundt
774420e456 ecwolf: add jayman2000 as maintainer 2023-02-04 13:49:15 -05:00
Jason Yundt
1aa9ce67f0 ecwolf: remove obsolete build steps
ECWolf 1.4.0 made several changes that make it easier for Linux distros
to create packages for ECWolf [1]. ECWolf now generates its own desktop
shortcut, so we no longer need to use makeDesktopItem. ECWolf now also
will look in the CMAKE_INSTALL_PREFIX/share/ecwolf directory for
ecwolf.pk3, so we no longer need to patch src/version.h or copy
ecwolf.pk3 manually.

[1]: 55a28ec7e1
2023-02-04 13:49:14 -05:00
Jayman2000
8d6a0e9658
ecwolf: better code style for meta.broken, fix GTK game selector (#212871)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2023-01-27 12:56:42 +01:00
Jason Yundt
d0d65badfc ecwolf: 1.3.3 -> 1.4.0
Release announcement: <https://maniacsvault.net/entry91>

SDL and SDL_mixer had to be replaced with SDL2 and SDL2_mixer to get the
new version of ECWolf to compile. Also, SDL2_net had to be added since
ECWolf now has support for multiplayer (see
<https://maniacsvault.net/ecwolf/multiplayer.php>).

Closes #211388.
2023-01-21 08:45:22 -05:00
Jason Yundt
aeb8fd1296 ecwolf: replace fetchurl with fetchFromBitbucket
This change makes ecwolf’s src slightly simpler. It also makes ecwolf’s
src more future proof. When ECWolf 2.0 is released, the “1.x” in the
maniacsvault.net URL is likely to change, but the Bitbuck repo isn’t
likely to change. Additionally, this change reduces the difference
between ecwolf’s default.nix and lzwolf’s default.nix (LZWolf is a fork
of ECWolf). Finally, this change makes nixpkgs rely on bitbucket.org
instead of maniacsvault.net. bitbucket.org is probably more reliable
than maniacsvault.net.
2023-01-21 08:45:21 -05:00
K900
cb2cfba6f7 treewide: switch all desktop file generators to new API
Notably:
- remove explicit arguments that match the defaults
- convert everything to the right Nix types
2022-02-25 13:40:38 -08:00
Sandro Jäckel
b2bdf29ced
ecwolf: cleanup, format 2021-08-10 10:19:29 +02:00
Sander van der Burg
f65e1d8793 ecwolf: fix compilation on darwin 2021-07-27 23:11:09 +02:00
Sander van der Burg
de9913708c ecwolf: init at 1.3.3 2021-07-26 23:31:31 +02:00