Commit Graph

27 Commits

Author SHA1 Message Date
Michael Daniels
5ed07317e9 treewide: change 'format = "other";' to 'pyproject = false;'
Entirely find-and-replace based.

A few usages that would cause rebuilds if changed remain.

This PR should have 0 rebuilds.
2026-01-12 17:50:37 -05:00
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
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
Emily
343ad0ee4a python3Packages.matrix-nio: add withOlm flag 2024-08-26 15:54:04 +01:00
Emily
4b1d39d935 treewide: remove myself from packages I don’t use
I’ve had an extended absence from Nix work and no longer actively
use a bunch of packages I used to maintain, so remove myself as a
maintainer from things I can’t usefully review/test changes for
as I ease back into things. This does unfortunately leave a few
packages orphaned (`stm32loader`, `tinyprog`, `python3Packages.fx2`,
and `python3Packages.jsonmerge`).
2024-06-15 16:53:23 +01: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
bwkam
06cc2f266b weechat-matrix: change --replace to --replace-fail 2024-05-03 02:51:37 +03:00
bwkam
cdd1255284 weechat-matrix: substitute matrix_upload with the right nix store path 2024-05-03 02:42:16 +03:00
Rob
a37d70e902 weechatScripts.weechat-matrix: Fix compatibility with matrix-nio 0.21
weechat-matrix script crashes at load time due to changes in matrix-nio.
Patching 'matrix/config.py' from this commit fixes it:
feae9fda26
2023-10-22 19:49:01 +00:00
Martin Weinelt
b484ba840b weechatScripts.weechat-matrix: Require matrix-nio[e2e] 2023-03-03 23:59:32 +01:00
Martin Weinelt
52d58e509a python310Packages.logbook: Normalize attribute, pname, dirname 2023-02-19 21:36:01 +01:00
Jörg Thalheim
104e8082de weechatScripts.matrix: fix build 2022-10-16 19:09:43 +02:00
Profpatsch
284d5486a5 weechat-matrix: fix startup crash
Python 3.10 has a bug in its SSL module.

Fixes: https://github.com/NixOS/nixpkgs/issues/178540
2022-06-27 14:35:24 +02:00
Sandro Jäckel
115475ff5b python310Packages.python-magic: normalise attr 2022-05-07 01:18:35 +02:00
Kenny MacDermid
f4336e4884 weechat-matrix: 0.2.0 -> 0.3.0 2021-07-03 19:10:23 -03:00
Robert Gerus
f7ccc5f35d weechatScripts.weechat-matrix: fix matrix_sso_helper path
server.py tries to launch a matrix_sso_helper binary when connecting to
a homeserver that uses some SSO mechanism instead of plain login and
password, but doesn't have $out/bin in $PATH.

Using substituteInPlace to patch server.py so that the helper process is
started by using its actual filesystem location instead of relying on
$PATH.

Fixes: https://github.com/NixOS/nixpkgs/issues/124186
2021-05-24 16:38:18 +02:00
Alyssa Ross
dee2a85af8 weechatScripts.weechat-matrix: make patchable
If an overlay adds patches, they wouldn't be applied because we were
copying from directory out of src.
2021-02-11 12:18:28 +00:00
Alyssa Ross
cfa16434c2 weechatScripts.weechat-matrix: fix PYTHONPATH
matrix.py tries to import its dependencies, and its own code from
$out/${python.sitePackages}, and neither of these worked because
nothing was telling Python where to load that stuff from.

Using patchPythonScript made it so matrix.py could find its
dependencies, but it still wasn't able to find its own code, so that
had to be added to program_PYTHONPATH beforehand so patchPythonScript
would include it as well.

Fixes: https://github.com/NixOS/nixpkgs/issues/89499
2021-02-02 17:13:53 +00:00
Pavol Rusnak
a6ce00c50c treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01: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
Emily
50a487d8fe weechat-matrix: 0.1.0 -> 0.2.0 2020-05-12 02:51:08 +01:00
Tony Olagbaiye
810909de3e python3Packages.weechat-matrix: unstable-2020-01-21 -> 0.1.0 2020-04-02 16:18:12 +00:00
Benno Fünfstück
41944946de weechatScripts.weechat-matrix: enable on darwin 2020-02-21 12:40:55 +01:00
Emily
6957e476f4 weechatScripts.weechat-matrix: unstable-2019-11-10 -> unstable-2020-01-21 2020-02-10 19:57:23 +01:00
tilpner
8150b587bd weechatScripts.weechat-matrix: init at unstable-2019-11-10 2019-11-16 23:06:50 -08:00