Commit Graph

594 Commits

Author SHA1 Message Date
Travis A. Everett
1641b0188d various: switch resholve + rec packages to finalAttrs
These likely would have been switched long ago by various automated
PRs if not for lack of support in resholve.mkDerivation.
2026-05-15 19:46:05 -05:00
Travis A. Everett
62e9404388 resholve: fix finalAttrs compatibility 2026-05-15 19:46:05 -05:00
Robert Schütz
e4f7a5a430 resholve: override pip's knownVulnerabilities 2026-05-03 23:18:55 -07:00
Travis A. Everett
3580fa1a79 resholve: adapt to marking of py2 setuptools CVE 2026-05-03 12:54:36 -07:00
Lisanna Dettwyler
27a41ab6b1 mspds-bin: use https for sources
Signed-off-by: Lisanna Dettwyler <lisanna.dettwyler@gmail.com>
2026-03-21 12:31:02 -04:00
Wael Nasreddine
322dc9abed h3_4: 4.3.0 -> 4.4.1, python3Packages.h3: 4.4.1 -> 4.4.2 (#493392) 2026-02-26 03:57:02 +00:00
Martin Joerg
35d6a98583 h3_4: 4.3.0 -> 4.4.1
https://github.com/uber/h3/blob/refs/tags/v4.4.1/CHANGELOG.md
https://github.com/uber/h3/compare/refs/tags/v4.3.0...refs/tags/v4.4.1
2026-02-23 16:49:34 +00:00
jopejoe1
1e3884e7a0 msp430Newlib: set pname and version 2026-02-18 10:32:58 +01:00
Stefan Frijters
056ccdfcf4 mspds: move NIX_LDFLAGS into env for structuredAttrs 2026-02-07 14:16:01 +01:00
Jo
d9e07c6f8f vc4-newlib: set pname and version (#486734) 2026-02-04 21:35:08 +00:00
Sigmanificient
083b7a19aa vc4-newlib: set pname and version 2026-02-04 22:11:31 +01:00
Sigmanificient
5aea5edc5e or1k-newlib: set pname and version 2026-02-03 23:59:35 +01:00
Weijia Wang
b988705bf5 mspdebug: 0.25 -> 0.26 (#461411) 2026-02-02 23:51:28 +00:00
Fernando Rodrigues
3562403503 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>
2026-01-31 21:08:16 +11:00
nixpkgs-ci[bot]
4f189086d0 Merge master into staging-nixos 2026-01-26 18:08:53 +00:00
quantenzitrone
7d8132a92c treewide: remove references to the xorg namespace in pkgs (automated)
this creates some eval errors that will be fixed in the next commit

done with the following script:

```fish
\#!/usr/bin/env fish

set packagesjson (nix eval --impure --json --expr '
let
  lib = import ./lib;
in
import pkgs/servers/x11/xorg/default.nix (lib.mapAttrs (
  name: _:
  if name == "lib" then
    lib
  else if name == "config" then
    { allowAliases = false; }
  else
    name
) (__functionArgs (import pkgs/servers/x11/xorg/default.nix))) { }
' | jq)

set one (grep '^    [A-Za-z0-9_-]*$' pkgs/servers/x11/xorg/default.nix | string trim | string replace -r '$' Z | sort | string sub -e -1)
set two (grep '^  [A-Za-z0-9_-]* = [A-Za-z0-9_-]*;$' pkgs/servers/x11/xorg/default.nix | cut -d= -f1 | string trim | string replace -r '$' Z | sort | string sub -e -1)

for arg in $one $two
    set oname $arg
    set nname (echo $packagesjson | jq -r .$oname)

    if test $nname = null
        echo (set_color red)warn:(set_color normal) unknown package xorg.$oname >&2
        continue
    end

    echo $oname "->" $nname

    # replace basic xorg.$name references
    for file in (rg -F "xorg.$oname" --files-with-matches pkgs)
        # special cases
        sd -F "$oname = xorg.$oname;" "$nname = $nname;" $file

        # replace
        sd -F "xorg.$oname" "$nname" $file

        # fixup function arguments

        # prevent duplicate function args
        if grep -E " ($oname|$nname),\$" $file >/dev/null
            continue
        end

        if grep 'xorg\..' $file >/dev/null # case1: there is more so we can't just remove the function arg

            if grep ' xorg,$' $file >/dev/null
                sd ' xorg,$' " xorg,
                $nname," $file

            else if grep ' xorg ? .*,$' $file >/dev/null
                sd 'xorg( ? .*),$' "xorg\$1,
                $nname," $file

            else
                sd -F 'xorg,' "$nname,
                xorg," $file
            end

        else # case there is no more xorg..* so we can just replace the function arg
            sd 'xorg(| ? .*),.*$' "$nname," $file
        end
    end
end

nix fmt
```
2026-01-25 22:28:09 +01:00
Ben Siraphob
c7e10647ea treewide: fix typos 2026-01-13 14:45:11 -05:00
Wolfgang Walther
9534d52810 resholve: fix build with structuredAttrs (#470700) 2025-12-15 08:06:26 +00:00
Stefan Frijters
c16e8406a0 resholve: fix build with structuredAttrs 2025-12-14 15:59:51 +01:00
nixpkgs-ci[bot]
0bf9c97a6d Merge staging-next into staging 2025-12-13 00:18:26 +00:00
Wolfgang Walther
d59250e804 Merge branch 'master' into staging-nixos 2025-12-10 18:45:42 +01:00
Wolfgang Walther
46c0c0eae7 Merge branch 'staging-next' into staging 2025-12-10 18:42:31 +01: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
Thiago Kenji Okada
3e892ed367 nixos-rebuild: remove 2025-12-03 22:41:16 +00:00
R. Ryantm
2b971dc588 mspdebug: 0.25 -> 0.26 2025-11-14 00:30:23 +00:00
Travis A. Everett
2662c1b538 resholve: 0.10.6 -> 0.10.7
Non-source changes:
- drops `bash -n` style syntax checking for writeScript(Bin) to avoid
  breaking cross builds
- add postResholve hook (supersedes unmerged pr #439997)
- track testing changes in resholve
2025-11-09 20:04:03 -06: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