Commit Graph

43 Commits

Author SHA1 Message Date
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
R. Ryantm
d52e10c2d7 mame: 0.270 -> 0.272 2024-12-01 17:44:48 +00:00
R. Ryantm
586a806a5d mame: 0.269 -> 0.270 2024-10-01 02:46:36 +00:00
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
34e0a7d26d mame: 0.268 -> 0.269 2024-09-02 11:36:09 +00:00
R. Ryantm
9a2efc1947 mame: 0.267 -> 0.268 2024-08-06 06:35:15 +00:00
R. Ryantm
c62693fa3b mame: 0.266 -> 0.267 2024-07-05 09:08:39 +00:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
R. Ryantm
4b572dece9 mame: 0.265 -> 0.266 2024-06-07 09:35:45 +00:00
R. Ryantm
99256cf9fc mame: 0.264 -> 0.265 2024-04-29 12:35:18 +00:00
R. Ryantm
ebac3c20bc mame: 0.263 -> 0.264 2024-03-31 17:41:35 +00:00
R. Ryantm
d7ae45409f mame: 0.262 -> 0.263 2024-02-28 22:40:50 +00:00
R. Ryantm
fd6ce4d574 mame: 0.261 -> 0.262 2024-02-01 06:34:45 +00:00
R. Ryantm
4d5d599914 mame: 0.260 -> 0.261 2023-12-16 14:57:53 +00:00
R. Ryantm
e2c89cb7d3 mame: 0.259 -> 0.260 2023-10-31 00:39:36 +00:00
R. Ryantm
c987b40da5 mame: 0.258 -> 0.259 2023-10-03 10:38:18 +00:00
R. Ryantm
aa6f4b70af mame: 0.257 -> 0.258 2023-09-03 03:00:39 +00:00
Austin Horstman
e5764e8204
treewide: add meta.mainProgram to emulators 2023-08-04 13:25:11 -05:00
R. Ryantm
4986e8bf74 mame: 0.256 -> 0.257 2023-07-31 01:12:49 +00:00
R. Ryantm
3060a684c3 mame: 0.255 -> 0.256 2023-06-28 12:45:22 +00:00
Thiago Kenji Okada
8ed4dc5f12 mame: 0.252 -> 0.255 2023-06-02 00:32:50 +01:00
R. Ryantm
dfd0441c5d mame: 0.251 -> 0.252 2023-02-25 08:28:39 +00:00
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
Artturin
6f6cc4a22d treewide: use toString on list NIX_CFLAGS_COMPILE
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
2023-02-22 21:23:04 +02:00
Fabián Heredia Montiel
0cf5d85f0c treewide: add gcc12 flags 2023-01-27 21:20:52 -06:00
Thiago Kenji Okada
ecc06edd98 mame: 0.250 -> 0.251 2023-01-07 14:01:54 +00:00
AndersonTorres
9a7e20255b mame: revert the use of substituteAll to substituteInPlace 2022-12-06 19:24:50 -03:00
AndersonTorres
83d89a2fad mame: refactor
- Use mame icon from papirus instead of downloading one from Archlinux packages;
- Rename the diff file to something more self-documenting;
- Add longDescription to mame;
- Add description to mame-tools;
- Get rid of top-level inheritance.
2022-12-06 19:24:50 -03:00
R. Ryantm
bd2f039f45 mame: 0.249 -> 0.250 2022-12-02 20:56:41 +00:00
Thiago Kenji Okada
c5668943cd mame: some improvements
- Do not depend on `dist.mak` during installPhase anymore, instead
  packaging everything manually. This removes the necessity of a
  patching it, and also we have more control
- Use system's sqlite instead of the bundled one
- General clean-up
2022-11-10 12:30:43 +00:00
Thiago Kenji Okada
b89efbd9a4 mame-tools: init at 0.249
This commit adds a new `tools` output to `mame` and move all
non-emulator binaries to it. This is because some of those binaries
(e.g.: chdman) are useful outside of the MAME, and the MAME binary is
really big. So if you only want to use some of the MAME tools, this will
reduce the download size needed for it.

The `tools` output is declared as `mame-tools` inside
`all-packages.nix`, for easier discovery.

This is similar to how other distros packages MAME, e.g.: on Arch Linux
we have `mame` and `mame-tools`.
2022-11-10 09:47:54 +00:00
Thiago Kenji Okada
b28f6cc8a3 mame: general improvements
- Fix desktop item
- Remove hardeningDisable
- Add icon
- Add pre/postInstall hooks
- Use libsForQt5 instead of libsForQt514
- Unmark broken in aarch64-linux
2022-10-31 08:48:08 -05:00
Bruno Bzeznik
0ea558b4ff mame: 0.243 -> 0.249 2022-10-29 17:57:32 +01:00
Rick van Schijndel
433701147a
treewide: pkgs/applications: mark broken for aarch64-linux 2022-05-30 13:42:58 +02:00
Rick van Schijndel
37c633f7ae treewide: pkgs/applications: mark broken for darwin 2022-05-29 10:56:04 +02:00
R. Ryantm
022c56fb7d mame: 0.242 -> 0.243 2022-04-30 08:09:32 +00:00
Thiago Kenji Okada
605ba3fa7b mame: use lua 5.3 2022-04-09 18:53:08 +01:00
Thiago Kenji Okada
7f4f71d3e7 mame: add patch to disable PDF documentation 2022-04-09 13:36:42 +01:00
Thiago Kenji Okada
d186f76cef mame: use system libraries when possible 2022-04-09 12:30:20 +01:00
Thiago Kenji Okada
aec46d1e40 mame: 0.239 -> 0.242 2022-04-09 11:31:38 +01:00
Thiago Kenji Okada
876b195ecc mame: add updateScript 2022-04-09 11:31:22 +01: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
AndersonTorres
8d65e832f0 Move misc/emulators to applications/emulators - part 1
Emulators form a class by themselves. So, they should be moved to applications/.
2022-02-16 01:38:20 -03:00