Commit Graph

570 Commits

Author SHA1 Message Date
Fernando Rodrigues
b4f577f6e4 treewide: fetchFromGitea -> fetchFromCodeberg
Most packages that used fetchFromGitea fetch their sources from Codeberg, so might as well migrate them.

The following command was used for this treewide:
```fish
for i in (rg 'fetchFromGitea \{\n *domain = "codeberg.org";' --multiline --files-with-matches)
    sed -z 's/fetchFromGitea {\n *domain = "codeberg.org";/fetchFromCodeberg {/g' $i > $i.tmp && mv $i.tmp $i
    sed -i 's/fetchFromGitea/fetchFromCodeberg/g' $i
end
```

The following paths were manually edited:

* pkgs/by-name/xr/xrsh/package.nix
* pkgs/applications/networking/browsers/librewolf/src.nix
* pkgs/by-name/go/gotosocial/package.nix
* pkgs/by-name/ka/katawa-shoujo-re-engineered/package.nix

Co-authored-by: Gutyina Gergő <gutyina.gergo.2@gmail.com>
Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>

(cherry picked from commit 3562403503)
Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2026-02-10 01:18:39 +11:00
Ihar Hrachyshka
cca3b04b44 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 19:01:23 +01:00
Rafael Ieda
06c79febc4 h3, h3_3: fix build with cmake4 2025-10-26 09:42:26 -03:00
K900
f8d669f413 Merge remote-tracking branch 'origin/master' into staging-next 2025-10-04 21:10:21 +03:00
NAHO
c8d4dabc43 pkgs: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --type file \
      . \
      pkgs \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2025-10-04 19:02:37 +02:00
nixpkgs-ci[bot]
02bde57e9a Merge master into staging-next 2025-09-24 18:05:53 +00:00
Nikolay Korotkiy
fa25e2fa22 h3_4: 4.2.0 -> 4.3.0 (#436291) 2025-09-24 15:59:43 +00:00
Robert Hensing
3d19784820 haskellPackages.changelog-d: 1.0.1 -> 1.0.2 2025-08-28 14:00:00 +02:00
nixpkgs-ci[bot]
481393d6bb Merge 33de6dfc31 into haskell-updates 2025-08-28 00:20:54 +00:00
Peder Bergebakken Sundt
387c44658f treewide: remove unused ... from package lambdas
located with `rg '^ *\.\.\.$' -tnix -l pkgs | xargs grep @ -L | grep -E '/(default|package)\.nix$'`
2025-08-27 17:40:18 +02:00
Martin Joerg
2170297e62 h3_4: 4.2.0 -> 4.3.0
https://raw.githubusercontent.com/uber/h3/v4.3.0/CHANGELOG.md
https://github.com/uber/h3/compare/refs/tags/v4.2.1...refs/tags/v4.3.0
2025-08-23 21:38:35 +00:00
nixpkgs-ci[bot]
9a67a6a955 Merge a534596775 into haskell-updates 2025-08-22 00:22:54 +00:00
jopejoe1
065ae9b9d3 newlib: move to by-name 2025-08-21 08:40:02 +02:00
Robert Hensing
89a2a6fa57 haskellPackages.hercules-ci-optparse-applicative: 0.18.1-fork -> 0.19.0.0-fork-0 2025-08-08 23:43:30 +02:00
Axel Karjalainen
1870d82500 Simplify definitions of libcs
- Used `stdenvNoLibc` directly in the package files instead of
  overriding `stdenv` to it in `all-packages.nix`
- Moved applicable libcs to `pkgs/by-name` (note: not newlib because
  it's also accessible via `newlib-nano`)
2025-08-05 23:16:45 +03:00
Sandro
94b8d9972a resholve: fix using Nix API with overlays (#420618) 2025-07-30 16:46:34 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Jason Yundt
d2392c7a2b resholve: fix using Nix API with overlays
Before this change, if you used an overlay to override the version of
resholve that Nixpkgs uses, then Nixpkgs would sometimes use the new
version of resholve and sometimes use the previous version of resholve.
Specifically, pkgs.resholve would use the new version of resholve and
pkgs.resholve.writeScriptBin would use the previous version of resholve.

This change makes it so that if an overlay replaces pkgs.resholve, then
pkgs.resholve and pkgs.resholve.writeScriptBin will still use the same
version of resholve.

Fixes #418458.
2025-07-13 06:53:51 -04:00
Sandro
9604d37b0f resholve: 0.10.5 -> 0.10.6 (#419005) 2025-07-06 22:40:50 +02:00
Martin Weinelt
ae4a1a485a treewide: add explicit format attribute for Python packages
If a Python package does not come with either `format` or `pyproject` we
consider it a setuptools build, that calls `setup.py` directly, which is
deprecated.

This change, as a first step, migrates a large chunk of these packages to
set setuptools as their explicit format

This is so we can unify the problem space for the next step of the
migration.
2025-07-02 05:56:47 +02:00
Travis A. Everett
8a1b029672 resholve: 0.10.5 -> 0.10.6
Also:
- use nixfmt style for examples in README.md
- drop passthru consumer test for ix removed in #397949
2025-06-22 08:58:20 -05:00
OPNA2608
fc85657b10 newlib: Apply patch to fix targeting MIPS 2025-05-14 20:32:39 +02:00
nixpkgs-ci[bot]
73a1ced090 Merge c73deb7619 into haskell-updates 2025-04-17 00:19:30 +00:00
r-vdp
d0a1625690 juce: move to by-name 2025-04-16 10:26:52 +02:00
R. Ryantm
9b17c0931a juce: 8.0.6 -> 8.0.7 2025-04-15 14:53:13 +00: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
nixpkgs-ci[bot]
0ffb4ba7a8 Merge cc50be1bf2 into haskell-updates 2025-04-07 00:20:38 +00:00
Gaetan Lepage
bfe27cf81c treewide: use a string for versionCheckProgramArg where possible 2025-04-05 14:45:13 +02:00
sternenseemann
1f00f46d8b Merge commit a2a66180ba into haskell-updates 2025-03-17 12:28:00 +01:00
Sigmanificient
91d5ab3ae4 treewide: remove unused rec expressions 2025-03-14 05:15:05 +01:00
nixpkgs-ci[bot]
b089339c6a Merge 5c6bec2e11 into haskell-updates 2025-03-07 00:18:25 +00:00
Arne Keller
14f552556e newlib-nano: Fix build (#375945) 2025-03-06 14:04:29 +01:00
sternenseemann
b71bdc9f2a haskellPackages.{ci-info, hasura-resource-pool}: remove
These packages were dependencies of hasura only and aren't uploaded
to Hackage. It seems unlikely that any downstream user depends on
them directly.
2025-02-14 02:01:30 +01:00
sternenseemann
31f1c125eb hasura-graphql-engine, haskellPackages: remove all broken hasura pkgs
These have been broken for a long time and are severly outdated. I'm
taking the lack of maintenance as a lack of interest and dropping
these. It may be better to start from scratch anyways when packaging
a newer version of hasura (they have added 9.10 support, so there's
no reason it couldn't be resurrected in theory).

From experience, Hasura is a huge can of worms and I'm personally not
interested in maintaining it. I've tried to get the ball rolling
again in the past (https://github.com/NixOS/nixpkgs/pull/250035)
which also didn't garner any interest.
2025-02-14 02:01:30 +01:00
Nikolay Korotkiy
7aa159d169 h3: 4.1.0 → 4.2.0 2025-02-08 19:05:50 +04:00
liberodark
acbf220e6f juce: 8.0.4 -> 8.0.6 2025-02-03 09:21:51 +01:00
Zhaofeng Li
cf69ff8265 newlib-nano: Fix build
The original check, while terse, causes the shell to exit after the
`for` loop if any file is non-existent.
2025-01-22 14:08:24 -07:00
Konstantin Nazarov
3c547e6031 newlib: add installation of libgloss for embedded targets (#367275)
I was trying to get an embedded RISC-V toolchain working, by
following pretty much a documented workflow:

```
pkgsCross = import pkgs.path {
  localSystem = pkgs.stdenv.buildPlatform.system;
  crossSystem = {
    config = "riscv32-none-elf";
    libc = "newlib-nano";
    gcc.arch = "rv32im";
  };
};
```

This is supposed to work for compiling programs that target
"bare-metal". But when I tried to compile my project, GCC complained
that it can't fild `-lgloss`. If you're curious what libgloss is, in
very simple terms it's a glue layer that allows you to provide
implementation for the bare minimum functionality that would get the
rest of the libc working. (such as `_sbrk`, `_open`, `_read` and
friends).

After digging into it for a while, I've figured out that newlib which
is shipped by nixpkgs doesn't contain libgloss as part of the build
resuts. So this isn't just me misconfiguring the search paths.

You may be wondering - why didn't anyone else find this issue? My
current guess is that nobody really uses this combination (newlib-nano
plus a bare-metal deployment). Most people who use the cross
toolchains likely target an operating system which provides syscalls
already and don't implement the stubs themselves.

If you really want to try and reproduce the bug, you need to pass this
as a flag to gcc: `--specs=nano.specs`.

Also, this bug is not really specific to NixOS, but happened in
ArchLinux as well. Here's a relevant bug report:
https://bugs.archlinux.org/task/66548. This is where I've found the
fix. Adding the fix in the way I did seems to fix the problem for
good.

The fix itself doesn't seem to be dangerous because in case libgloss
is absent, it would be skipped and not copied to the build results.

NB: during review it's been also suggested to add libm for the same
reasons, so this is what I did as well.
2025-01-13 23:32:32 +01:00
Nick Cao
3638119056 juce: remove unused argument fetchpatch (#373120) 2025-01-12 10:30:33 -05:00
Ethan Carter Edwards
bfac9a0a43 juce: remove unused argument fetchpatch
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
2025-01-12 00:38:05 -05:00
Liam Murphy
52ca863592 newlib: 4.4.0.20231231 -> 4.5.0.20241231 2025-01-01 15:09:25 +00:00
Liam Murphy
20a6e0c6ca newlib: 4.3.0.20230120 -> 4.4.0.20231231
This update allows newlib to compile with GCC 14, which in turn fixes
the cross-compilers which use newlib for their libc (for example,
`pkgsCross.riscv64-embedded.buildPackages.gcc`).
2024-12-24 22:05:58 +00:00
Arne Keller
49291ae619 juce: 7.0.11 → 8.0.4 (#356771) 2024-12-24 07:55:27 +01:00
Samuel Tardieu
30463d9064 juce 8.0.3 → 8.0.4 2024-12-18 21:49:51 +01:00
Samuel Tardieu
390bad7e66 juce: 7.0.11 → 8.0.3
Diff: https://github.com/juce-framework/JUCE/compare/7.0.11...8.0.3
2024-12-15 16:53:55 +01: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
Samuel Tardieu
e307440e58 juce: reformat 2024-11-17 18:21:29 +01:00
Theodore Ni
660022ee30 newlib: enable parallel build (#354520) 2024-11-09 20:29:44 -08:00
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