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
This reverts commit 8816be7bda.
Well this is not a desktop entry... I think.
This fixes opening Maps in GNOME (from the activity view) for me:
"JS ERROR: Error: Requiring GLib, version 2.0: Typelib file for namespace 'GLib',
version '2.0' not found".
I learned from the KDE docs[1] that *unlike desktop files*, dbus files should contain
full path to the application to start. I tried not using full path previously in a
sticky PR[2] and it just fails to start with `org.freedesktop.DBus.Error.Spawn.ExecFailed`.
[1]: https://develop.kde.org/docs/features/d-bus/dbus_autostart_services/#creating-a-service-file
[2]: https://github.com/linuxmint/sticky/pull/118
upstream determines the gjs path with `find_program('gjs')`, however
this fails to find anything when cross compiling because meson doesn't
know which paths to check.
the interaction between meson's `find_program` and `cross-file` is
documented here:
<https://mesonbuild.com/Reference-manual_functions.html#find_program>
We are migrating packages that meet below requirements:
1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration
The tool is here: https://github.com/Aleksanaa/by-name-migrate.