Commit Graph

371 Commits

Author SHA1 Message Date
aleksana
571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00
Sefa Eyeoglu
63618b30ae hydraAntLogger: actually call {pre,post}Install hook (#354073) 2024-11-07 07:50:54 +01:00
TomaSajt
56fd238386 hydraAntLogger: actually call {pre,post}Install hook 2024-11-06 20:49:19 +01:00
Weijia Wang
e9e2212a07 commonsLang: 3.15.0 -> 3.17.0 (#349243) 2024-11-01 14:10:01 +01:00
Weijia Wang
47c5b4f26a commonsLogging: 1.3.1 -> 1.3.4 (#349043) 2024-11-01 13:37:50 +01:00
Weijia Wang
9a541bb2a1 commonsIo: 2.16.1 -> 2.17.0 (#348538) 2024-11-01 13:28:34 +01:00
piegames
68927918d0 treewide: Fix indentation in strings
The indentation stripping semantics of strings are fairly bad and have a
few gotchas where the resulting string has not the intended indentation.
This commit fixes most if not all such instances in Nixpkgs.

I tried to strive a balance between keeping the diff small and
reformatting/refactoring the code to look better. In general,
reformatting should be left to Nixfmt.

Note that this causes a lot of rebuilds by design. All changes need to
be thoroughly vetted and reviewed for correctness. There is no automatic
way to prove correctness.

List of files to fix generated by running
https://gerrit.lix.systems/c/lix/+/2092 on Nixpkgs and looking at the
warnings.
2024-10-22 21:36:42 +02:00
R. Ryantm
d7e97a7e9d commonsLang: 3.15.0 -> 3.17.0 2024-10-17 09:27:16 +00:00
R. Ryantm
3f69d2d455 commonsLogging: 1.3.1 -> 1.3.4 2024-10-16 13:46:04 +00:00
R. Ryantm
cf47188756 commonsIo: 2.16.1 -> 2.17.0 2024-10-14 13:51:02 +00:00
Peder Bergebakken Sundt
5ab34ae7b0 lucene: use mirror url 2024-10-09 12:04:03 +02: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
Sebastián Mancilla
39415e1f7a Merge pull request #332475 from r-ryantm/auto-update/commonsBcel
commonsBcel: 6.8.2 -> 6.10.0
2024-08-22 21:53:31 -04:00
Sebastián Mancilla
b453935346 Merge pull request #328159 from r-ryantm/auto-update/commonsLang
commonsLang: 3.14.0 -> 3.15.0
2024-08-22 21:03:00 -04:00
Sebastián Mancilla
7ce5cd8ef3 Merge pull request #328443 from r-ryantm/auto-update/commonsDaemon
commonsDaemon: 1.3.4 -> 1.4.0
2024-08-15 22:45:35 -04:00
R. Ryantm
179b7a7d45 commonsBcel: 6.8.2 -> 6.10.0 2024-08-05 12:49:19 +00:00
Sigmanificient
543cd40ecc treewide: remove trailing space in description
Done using `grep -rP 'description\s+=\s+"[^"]+[ ]";' | cut -d ':' -f 1 |
xargs -i nvim {}` and sorting the opened files by hand, avoiding
generated packages list
2024-07-26 03:38:50 +02:00
R. Ryantm
5f533e318c commonsDaemon: 1.3.4 -> 1.4.0 2024-07-19 13:56:40 +00:00
R. Ryantm
d145c1d32c commonsLang: 3.14.0 -> 3.15.0 2024-07-18 12:19:35 +00:00
Weijia Wang
3102e63b96 Merge pull request #325415 from r-ryantm/auto-update/saxon-he
saxon-he: 12.4 -> 12.5
2024-07-15 14:34:24 +02:00
R. Ryantm
08cb23c875 saxon-he: 12.4 -> 12.5 2024-07-08 04:06:04 +00:00
Weijia Wang
8bc4b4d81e Merge pull request #323680 from r-ryantm/auto-update/hsqldb
hsqldb: 2.7.2 -> 2.7.3
2024-07-07 03:28:21 +02:00
R. Ryantm
e689e151b3 lombok: 1.18.32 -> 1.18.34 2024-07-05 00:06:38 +02:00
Dusk Banks
34b1c1f92f treewide: migrate bb010g's packages to by-name 2024-07-04 02:41:03 -07:00
Masum Reza
0b5665868a Merge pull request #289490 from rvl/saxon_12-he
saxon-he: 11.5 -> 12.4
2024-07-04 00:30:31 +05:30
R. Ryantm
284e90cd45 hsqldb: 2.7.2 -> 2.7.3 2024-07-01 00:23:05 +00:00
Jan Tojnar
e1a24b4319 swt: Remove GNOME 2 dependencies
Those libraries have been deprecated for 10+ years and require daemons
that no-one has running these days.
2024-06-27 09:42:33 +02: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
Alexis Hildebrandt
bf995e3641 treewide: Remove ending period from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
2024-06-09 23:04:51 +02:00
R. Ryantm
93c9eb3b20 commonsCompress: 1.26.1 -> 1.26.2 2024-06-02 02:49:34 +00:00
R. Ryantm
987cc2cb44 commonsFileUpload: 1.4 -> 1.5 2024-05-25 04:12:41 +00:00
Weijia Wang
2bdfb0e80e Merge pull request #308192 from r-ryantm/auto-update/commonsLogging
commonsLogging: 1.3.0 -> 1.3.1
2024-05-11 19:06:15 +02:00
Weijia Wang
299a46ee91 Merge pull request #308166 from r-ryantm/auto-update/commonsIo
commonsIo: 2.15.1 -> 2.16.1
2024-05-11 18:59:05 +02:00
R. Ryantm
9e1764c02e commonsLogging: 1.3.0 -> 1.3.1 2024-05-01 07:02:26 +00:00
R. Ryantm
e7d9d81686 commonsIo: 2.15.1 -> 2.16.1 2024-05-01 05:25:53 +00:00
R. Ryantm
b0fde65664 commonsBcel: 6.8.1 -> 6.8.2 2024-04-29 11:33:50 +00:00
TomaSajt
e48ef08dea jffi: clean up and make deterministic 2024-03-25 19:52:59 +01:00
Weijia Wang
d259c4231c Merge pull request #295766 from r-ryantm/auto-update/commonsCompress
commonsCompress: 1.26.0 -> 1.26.1
2024-03-23 23:13:46 +01:00
R. Ryantm
fd70fc0d74 lombok: 1.18.30 -> 1.18.32 2024-03-23 00:34:35 +00:00
Peder Bergebakken Sundt
f20d4079ee Merge pull request #295602 from r-ryantm/auto-update/commonsLogging
commonsLogging: 1.2 -> 1.3.0
2024-03-22 21:16:19 +01:00
Pol Dellaiera
186c3e34a7 Merge pull request #296549 from TomaSajt/strip-java-archives-hook
add stripJavaArchivesHook and use treewide
2024-03-19 05:41:08 +01:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
TomaSajt
0e20953796 treewide: use stripJavaArchivesHook instead of canonicalize-jars-hook 2024-03-17 13:35:12 +01:00
R. Ryantm
4d22a34755 commonsCompress: 1.26.0 -> 1.26.1 2024-03-14 01:32:26 +00:00
R. Ryantm
c27aa070d9 commonsLogging: 1.2 -> 1.3.0 2024-03-13 12:25:21 +00:00
Weijia Wang
661fa39cf0 Merge pull request #285998 from r-ryantm/auto-update/commonsBcel
commonsBcel: 6.8.0 -> 6.8.1
2024-03-07 10:56:25 +01:00
R. Ryantm
64c61ee30a commonsIo: 2.11.0 -> 2.15.1 2024-02-26 05:27:46 +00:00
R. Ryantm
8b76f47819 commonsCompress: 1.25.0 -> 1.26.0 2024-02-21 07:13:05 +00:00
R. Ryantm
5e0aafc862 jffi: 1.3.12 -> 1.3.13 2024-02-20 07:10:06 +00:00
Rodney Lorrimar
88441020ac saxon-he: 11.5 -> 12.4
Adds `saxon_11-he` and `saxon_12-he` attributes for specific versions,
and sets `saxon-he = saxon_12-he`.

Adds an updateScript for the latest versions of Saxon-HE.
2024-02-17 16:16:50 +08:00