Commit Graph

35 Commits

Author SHA1 Message Date
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Guy Chronister
475a0e3a44 various: remove superflous usages of pname 2025-09-25 20:45:06 -05:00
Bobby Rong
bd39f2c755 pantheon.switchboard: 8.0.2 -> 8.0.3
https://github.com/elementary/switchboard/compare/8.0.2...8.0.3
2025-07-30 21:26:28 +08:00
Fernando Rodrigues
05580f4b44 treewide: switch instances of lib.teams.*.members to the new meta.teams attribute
Follow-up to #394797.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-04-25 22:20:17 -03:00
Winter
a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
Pol Dellaiera
65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
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
Bobby Rong
8510c82bf0 pantheon.switchboard: 8.0.1 -> 8.0.2
https://github.com/elementary/switchboard/compare/8.0.1...8.0.2
2024-10-23 21:13:35 +08:00
Bobby Rong
1cbd552a1d pantheon.switchboard: 8.0.0 -> 8.0.1
https://github.com/elementary/switchboard/compare/8.0.0...8.0.1
2024-10-05 20:47:57 +08:00
Bobby Rong
2b45e18cb0 pantheon.switchboard: 6.0.2 -> 8.0.0
https://github.com/elementary/switchboard/compare/6.0.2...8.0.0
2024-08-24 10:01:02 +08:00
Jan Tojnar
eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00
figsoda
a211d94291 treewide: remove attrPath from nix-update-script calls
after https://github.com/Mic92/nix-update/pull/120 and https://github.com/NixOS/nixpkgs/pull/207703, `attrPath` can now be omitted when using `nix-update-script`
2022-12-26 12:39:21 -05:00
Bobby Rong
0747c65922 pantheon.switchboard: 6.0.1 -> 6.0.2 2022-06-15 12:00:39 +08:00
Bobby Rong
f908b3e348 pantheon.switchboard: 6.0.0 -> 6.0.1 2022-05-04 09:20:06 +08:00
Bobby Rong
fae6f22106 pkgs/pantheon: remove elementary-icon-theme from buildInputs for pkgs that don't hardcode icon themes
User may install icon theme of their choices.
The icons are no longer picked up by wrapGAppsHook by default anyway.
2022-03-18 10:48:39 +08:00
Bobby Rong
fae325457a pkgs/pantheon: reorder attributes
https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/attribute-ordering.md

Addressing the formatting now to minimize the Pantheon 7 update PR diff.
2022-01-24 20:29:52 +08:00
Bobby Rong
990d558faf pantheon.switchboard: pull upstream fix for meson 0.61
i18n.merge_file has been ignoring positional arguments for a time and explicitly rejects with error since meson 0.61
2022-01-13 18:37:14 +08:00
Bobby Rong
b1005e8b3d pantheon.switchboard: remove clutter-gtk from buildInputs 2021-11-28 19:25:12 +08:00
Bobby Rong
7bec0408e7 pkgs/pantheon: remove unused pantheon from args 2021-11-26 16:51:18 +08:00
Bobby Rong
342035a5d1 pkgs/pantheon: set meta.mainProgram 2021-10-28 10:48:14 +08:00
Bobby Rong
0fd8cc3908 treewide: switch from pantheon.maintainers to lib.teams.pantheon 2021-09-18 23:07:00 +08:00
Bobby Rong
e79876b1f7 pantheon.switchboard: 2.4.0 -> 6.0.0 2021-09-18 19:33:23 +08:00
Ben Siraphob
5fffcef915 pkgs/desktops: pkgconfig -> pkg-config 2021-01-16 23:49:59 -08: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
worldofpeace
7961afc58a pantheon: update hashes 2020-09-03 19:43:09 -04:00
worldofpeace
d12c11e30c treewide: use nix-update updateScript for packages I maintain 2020-07-29 12:33:39 -04:00
worldofpeace
3fe608a274 pantheon.switchboard: 2.3.9 -> 2.4.0
https://github.com/elementary/switchboard/releases/tag/2.4.0
2020-06-07 12:48:23 -04:00
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
worldofpeace
dd89d6af4e pantheon.switchboard: 2.3.8 -> 2.3.9 2020-04-05 20:39:10 -04:00
worldofpeace
312f643a3a pantheon.switchboard: 2.3.7 -> 2.3.8
https://github.com/elementary/switchboard/releases/tag/2.3.8
2020-01-18 21:40:46 -05:00
worldofpeace
95dfa8b8cf pantheon: no bash update script, nixpkgs_github_update
Cuz ew. What could be more ew? Not this really.
Clearly using update-source-version (bash) from a different lang
is better? 😜️
2019-12-22 01:47:42 -05:00
worldofpeace
58f9fcdf4b pantheon.switchboard: 2.3.6 -> 2.3.7
Drops libunity https://github.com/elementary/switchboard/pull/109.

https://github.com/elementary/switchboard/releases/tag/2.3.7
2019-11-10 20:59:56 -05:00
worldofpeace
0b59f4212c pantheon: stylize expressions
The same way we want them in GNOME in nixpkgs.
Didn't touch the greeter expression because I have
a branch where it's already rewritten.
2019-08-06 11:20:01 -04:00
worldofpeace
ebc6b67250 pantheon: drop gobject-introspection for setup-hook
Vala now has the setup-hook we need. [0]

[0]: 79ca7f4cb4
2019-06-11 03:00:35 -04:00
worldofpeace
78da8d668b pantheon: init a 5.0 2019-01-24 20:54:14 +00:00