Commit Graph

935 Commits

Author SHA1 Message Date
PerchunPak
a6fe798a01
pluginupdate.py: fix bugs and add improvements
I fixed many hidden bugs and made some small improvements. The main
reason this was separated from #336137 is to fix the sorting issue.

Before this commit, sorting for Vim plugins was broken and worked by
what was fetched first. This is because the sorting was done by empty
strings (the default value in CSV is not None but an empty string). This
PR fixes it and also moves sorting from the user to the library (from
`vim/plugins/update.py` to `pluginupdate.py`) to prevent such weird
issues and duplication of code.
2024-11-09 00:20:38 +01:00
PerchunPak
8b503ec432
pluginupdate.py: reformat with ruff
Ruff - an extremely fast Python linter and code formatter, written in Rust.
2024-11-09 00:20:38 +01:00
Artturin
11761eda6d
rebuild-amount: Fix 'SC2155 (warning): Declare and assign separately to avoid masking return values.' (#321146) 2024-10-25 02:34:36 +03:00
Austin Horstman
1d19bc9a53
luarocks-packages.csv: fix sorting 2024-10-23 23:17:02 -05:00
Austin Horstman
6e7cb5485e
luaPackages: pin tl to 0.15.3-1
luarocks lockfile not supported, at the moment. pinning package until we
can properly manage this.
2024-10-23 23:17:01 -05:00
David McFarland
8b193a46be
dotnet: october 2024 releases (#348077) 2024-10-15 10:51:53 -03:00
Michael Hoang
e81b7d4f57 maintainers/scripts/update.nix: avoid deadlock
Use `Process.communicate()` instead of `Process.wait()` to ensure the
`stdin` and `stdout` OS pipe buffers don't get full and cause a deadlock
waiting for the buffers to get emptied.
2024-10-14 18:47:31 -03:00
K900
0c879e6e01 kdePackages: Plasma 6.1.5 -> 6.2.0 2024-10-08 15:31:24 +03:00
K900
20afb4559c maintainers/scripts/kde: fix formatting to match nixfmt 2024-10-08 15:31:24 +03:00
K900
38fb2331ad maintainers/scripts/fetch-kde-qt.sh: hardcode path instead of using $0 2024-10-08 14:21:49 +03: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
Gaetan Lepage
b4cde4d7f1 luaPackages.neorg: init at 9.1.1-1
Co-authored-by: Austin Horstman <khaneliman12@gmail.com>
2024-09-24 10:06:58 +02:00
Matthieu Coudron
57bbd52af5
packages luarocks updater as pyproject package (#343584)
* luarocks-packages-updater: convert into pyproject package

* pluginupdate: move to its own folder

so we can copy just the folder when using this as a module

* luarocks-packages-updater: adress review
2024-09-22 21:15:41 +02:00
K900
a78ad9a8ee maintainers/scripts/kde: fix for nixfmt style 2024-09-20 08:56:56 +03:00
David McFarland
988b57fa74 update-dotnet-lockfiles: add startWith flag
This allows you to resume after a failure by passing the name of the
first package you want to be fetched.
2024-09-17 01:14:28 -03:00
David McFarland
3a7d2b8bbf update-dotnet-lockfiles: skip packages that don't evaluate
This allows the script to run on platforms that can't fetch all of the
packages, or without allowing unfree.
2024-09-17 01:14:27 -03:00
nicoo
4ebe4a2089 maintainers/scripts/sha-to-sri: ignore gemset.nix files 2024-09-15 11:24:30 +02:00
Gaétan Lepage
c6e077b0b2
vimPlugins.lze: init at 0.1.1 (#339387) 2024-09-14 20:32:40 +02:00
Alyssa Ross
df61c2acb5 treewide: remove executable bit from .nix files
???
2024-09-14 13:08:57 +02:00
BirdeeHub
6b1aa6159f vimPlugins.lze: init at 0.1.1
I made this, and I almost completely deleted it because I was fully
on board with lz-n again. However, I have been using it and lz-n
simultaneosly and trying them out.

I wish to publish lze after all. I like it a lot.

It works completely differently from lz-n and has a different handler
api, but has a similar plugin spec.

Update pkgs/development/lua-modules/overrides.nix

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
2024-09-13 16:47:37 -07:00
nicoo
9259479c42 maintainers/scripts/sha-to-sri: minor efficiency improvement of the Nix32 decoder 2024-09-13 14:11:34 +00:00
nicoo
011daf9161 maintainers/scripts: document sha-to-sri 2024-09-13 10:15:19 +00:00
nicoo
e079a279f4 maintainers/scripts/sha-to-sri: drop unused imports 2024-09-13 10:06:36 +00:00
nicoo
bf6b5f7f85 maintainers/scripts/sha-to-sri: accept directories as input
Doesn't skip files passed as CLI arguments based on their name anymore,
since bulk changes can now be done without resorting to `xargs` or equivalent.
2024-09-13 10:06:36 +00:00
nicoo
915799a2b9 maintainers/scripts/sha-to-sri: fix file-descriptor leak 2024-09-13 10:06:35 +00:00
nicoo
c425822e17 maintainers/scripts/sha-to-sri: format 2024-09-13 10:03:00 +00:00
K900
b9b940b8b9 maintainers/scripts/kde/generate-sources: update URL format 2024-09-12 16:35:02 +03:00
Philip Taron
fd27888c61
maintainers: add targeted fix for missing pkgs/by-name/.../package.nix files to maintainers/scripts/build.nix 2024-09-10 08:41:15 -07:00
David McFarland
13bd100300 update-dotnet-lockfiles.nix: disable aliases 2024-09-05 22:47:38 -03:00
Philip Taron
89cbfde96d
nixpkgs-vet: update CI, docs, and release to 0.1.4
Everything gets moved into the `ci/` top-level directory.

We keep behind `maintainers/scripts/check-by-name.sh` and `pkgs/test/check-by-name/pinned-version.txt` as they are going to cause CI errors and confusion until we get all the way through the various channels.
They'll be removed in about a week or so.
2024-09-03 13:53:25 -07:00
Gutyina Gergő
341610082b
vimPlugins.lsp-progress-nvim: init at 1.0.13-1 2024-09-01 15:24:33 +02:00
Gutyina Gergő
be3e301b9a
luaPackages.lsp-progress-nvim: init at 1.0.13-1 2024-09-01 15:23:16 +02:00
Sandro Jäckel
55760e4c10 hydra: rename from hydra_unstable
There is no stable hydra package
2024-08-29 13:56:32 +10:00
Marc Jakobi
3fa807ef33 vimPlugins.lzn-auto-require: init at 0.1.0 2024-08-23 12:16:32 +02:00
K900
65f5cbb5f2 kdePackages: Gear 24.05.2 -> 24.08.0
- kweathercore to gear
- kipi removed
- knotes removed
- kgraphviewer and massif-visualizer added
- kdevelop and friends to qt6
2024-08-22 17:14:41 +03:00
Thiago Kenji Okada
5b60c5736f
Merge pull request #327878 from teto/warn-when-missing-token
pluginupdate: warn when github token isn't set
2024-08-11 11:40:07 +01:00
Marc Jakobi
064ef15077 luaPackages.luarocks-build-treesitter-parser-cpp: init at 1.0.0 2024-08-09 18:23:02 +02:00
bl0v3
313fc26d22 maintainers/scripts/bootstrap-files: Add s390x to CROSS_TARGETS 2024-08-05 13:02:00 +02:00
github-actions[bot]
0b204f8f69
Merge master into haskell-updates 2024-07-30 00:14:25 +00:00
Philip Taron
4089e292e5 convert-to-import-cargo-lock: avoid top-level with in shell.nix 2024-07-29 19:46:18 +02:00
Marc Jakobi
61e2966413 luaPackages.llscheck: init at 0.5.0-1 2024-07-28 15:10:37 +02:00
sternenseemann
9919b666ab haskell.packages.ghc{96,98}.cabal-install: fix build of 3.12
With cabal-install >= 3.12, we need to adjust our cabal-install overlay
once again.

- Due to the new dependency semaphore-compat, which appears to require
  unix >= 2.8 it is very difficult to get to work for GHC < 9.6 (but
  probably possible). Technically, using pkgs.cabal-install should
  always be fine, so there's no strict need for cabal-install to work
  with every GHC. Let's drop support for GHC < 9.6 for now.

- Make sure that cabal-install-solver also uses the latest version
  always.

- Due to Cabal 3.12, we need to deviate from Stackage for
  hackage-security. cabal-install does support the standard version of
  resolv now, though.
2024-07-25 16:54:51 +02:00
Audrey Dutcher
9dbd5a9a9d [squashme] do the requested changes 2024-07-19 21:32:07 -07:00
Matthieu C.
4078209d71 pluginupdate: warn when github token isn't set
and nproc > 1. Actually the error might happen even with nproc=1.
2024-07-17 12:19:18 +02:00
Matthieu C.
35e972e3a4 vimPluginsUpdater: make development easier
`nix develop .#vimPluginsUpdater` now lets you enter a shell where you
can run `pkgs/applications/editors/vim/plugins/update.py` and
iteratively develop !

- removed `warn` warning from python by using `warning` instead
- `plugin2nix` was calling the same bit of code over and over thus
  slowing down the generator by a lot
2024-07-15 10:31:28 +02:00
Jan Tojnar
9fc19b0866 maintainers/scripts/update.py: Fix worktree cleanup on failure
The context manager would previously just terminate early on exception.
As a result, the worktree and branch would not get pruned when update script failed.

Let’s wrap the cleanup code in `finally` block as suggested by Python docs:
https://docs.python.org/3/library/contextlib.html#contextlib.contextmanager
2024-07-13 15:48:17 +02:00
❄️
61ff097de5
Merge pull request #319860 from superherointj/update-script-skip-prompt
maintainers/scripts/update: support skipping prompts
2024-07-12 10:55:40 -03:00
Marc Jakobi
eed9fc902e luaPackages.busted-htest: init at 1.0.0-1 2024-07-08 22:08:14 +02:00
Martin Weinelt
7b8429bbc4
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
- pkgs/development/python-modules/jaxtyping/default.nix
2024-07-02 12:08:49 +02:00
Jan Tojnar
0f56e32213
Merge pull request #319659 from jtojnar/gnome-extract
Move various packages out of gnome scope
2024-07-02 08:03:53 +02:00