111 Commits

Author SHA1 Message Date
Eman Resu ff094f60ad treewide: replace more singleton license lists 2026-07-15 14:04:39 -04:00
Eman Resu a425506cd5 various: fix license breakages 2026-07-15 13:57:18 -04:00
Sergei Trofimovich f3f5047f5a bats.tests: fix the eval
Without the chnage the eval fails as:

    $ nix build --no-link -f. bats.tests
    error:
       … while evaluating the attribute 'resholve'
         at pkgs/by-name/ba/bats/package.nix:250:5:
          249|     inherit bash-preexec locate-dominating-file;
          250|     resholve = resholve.tests.cli;
             |     ^
          251|   }

       … while evaluating the attribute 'tests.cli'
         at pkgs/development/misc/resholve/resholve.nix:58:5:
           57|       ;
           58|     tests = callPackage ./test.nix {
             |     ^
           59|       inherit

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: function 'anonymous lambda' called with unexpected argument 'python27'
       at pkgs/development/misc/resholve/test.nix:1:1:
            1| {
             | ^
            2|   lib,
2026-06-01 20:08:17 +01:00
Aliaksandr 34bc09dca9 resholve: move python2-modules from oil to their folder 2026-05-31 15:15:51 +03:00
Aliaksandr cfaddae52a python2: delete docs 2026-05-31 15:15:00 +03:00
Aliaksandr e6871d9800 python2: move cpython, mkPythonDerivation into resholve 2026-05-31 15:14:59 +03:00
Aliaksandr c510450a30 python2: remove from top-level 2026-05-31 15:14:59 +03:00
Aliaksandr a863496453 resholve: move python27 into its own file 2026-05-31 15:14:58 +03:00
Aliaksandr 2c87389c6f python2-packages: move into resholve 2026-05-31 15:14:58 +03:00
Sandro ab2276ee2d yadm: allow omitting some dependencies (#516675) 2026-05-26 16:17:15 +00:00
Sandro Jäckel 0438d3a58c treewide: resolve pypi.org and related redirects 2026-05-23 01:48:10 +02:00
SandaruKasa 0a1bf9d0ab resholve.mkDerivation: propagate strictDeps & __structuredAttrs 2026-05-16 19:11:57 +03:00
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
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
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
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
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
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
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
Sigmanificient 91d5ab3ae4 treewide: remove unused rec expressions 2025-03-14 05:15:05 +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 https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
h7x4 8f55b011e0 treewide: add meta.changelog (#346488)
* guix: add meta.changelog

* zile: add meta.changelog

* zoom: add meta.changelog

* zotify: add meta.changelog

* zpaqfranz: add meta.changelog

* zunit: add meta.changelog

* zxwing-cpp: add meta.changelog

* zxpy: add meta.changelog

* zydis: add meta.changelog

* zziplib: add meta.changelog

* j: add meta.changelog

* kyua: add meta.changelog

* json2ts: add meta.changelog

* igir: add meta.changelog

* ios-webkit-debug-proxy: add meta.changelog

* gpaste: add meta.changelog

* polkit_gnome: add meta.changelog

* papers: add meta.changelog

* libmsgraph: add meta.changelog

* quadrapassel: add meta.changelog

* gnome-nibbles: add meta.changelog

* decibels: add meta.changelog

* libgedit-amtk: add meta.changelog

* simple-scan: add meta.changelog

* gnome-klotski: add meta.changelog

* gnome-sound-recorder: add meta.changelog

* gnome-remote-desktop: add meta.changelog

* gnome-robots: add meta.changelog

* gnome-shell-extensions: add meta.changelog

* gnome-panel: add meta.changelog

* gnome-session: add meta.changelog

* gnome-keyring: add meta.changelog

* devhelp: add meta.changelog

* libgnome-keyring: add meta.changelog

* ghex: add meta.changelog

* gnome-connections: add meta.changelog

* lightsoff: add meta.changelog

* gnome-flashback: add meta.changelog

* livi: add meta.changelog

* mutter: add meta.changelog

* hitori: add meta.changelog

* gnome-initial-setup: add meta.changelog

* gnome-bluetooth: add meta.changelog

* gnome-shell: add meta.changelog

* gnome-sudoku: add meta.changelog

* ideamaker: add meta.changelog

* i2p: add meta.changelog

* lms: add meta.changelog

* adwaita-icon-theme: add meta.changelog

* gnome-applets: add meta.changelog

* flac123: add meta.changelog

* flaca: add meta.changelog

* flameshot: add meta.changelog

* flaresolverr: add meta.changelog

* a52dec: add meta.changelog

* hexbinhex: add meta.changelog

* dwl: add meta.changelog

* msolve: add meta.changelog

* jcli: add meta.changelog

* nmap: add meta.changelog

* nmapsi4: add meta.changelog

* labctl: add meta.changelog

* _1oom: add meta.changelog

* libipuz: add meta.changelog

* metacity: add meta.changelog

* sushi: add meta.changelog

* rygel: add meta.changelog

* zenity: add meta.changelog

* crosswords: add meta.changelog

* gnome-mahjongg: add meta.changelog

* alacarte: add meta.changelog

* loupe: add meta.changelog

* cheese: add meta.changelog

* atomix: add meta.changelog

* swell-foop: add meta.changelog

* alfis: add meta.changelog

* aperture: add meta.changelog

* atomic-swap: add meta.changelog

* besu: add meta.changelog

* bisq: add meta.changelog

* bitcoin-abc: add meta.changelog

* bitcoin-knots: add meta.changelog

* bitcd: add meta.changelog

* btcdeb: add meta.changelog

* btcpayserver: add meta.changelog

* 86box: add meta.changelog

* darling: add meta.changelog

* dosbox: add meta.changelog

* firebird-emu: add meta.changelog

* maiko: add meta.changelog

* accerciser: add meta.changelog

* adwaita-icon-theme-legacy: add meta.changelog

* dconf-editor: add meta.changelog

* eog: add meta.changelog

* evolution-data-server: add meta.changelog

* file-roller: add meta.changelog

* four-in-a-row: add meta.changelog

* gdm: add meta.changelog

* geary: add meta.changelog

* gitg: add meta.changelog

* gnome2048: add meta.changelog

* gnome-backgrounds: add meta.changelog

* gnome-text-editor: add meta.changelog

* gnome-tour: add meta.changelog

* gnome-user-share: add meta.changelog

* gxml: add meta.changelog

* tali: add meta.changelog

* totem: add meta.changelog

* mobile-broadband-provider-info: add meta.changelog

* avr: add meta.changelog

* brev-cli: add meta.changelog

* juce: add meta.changelog

* loc: add meta.changelog

* resholve: add meta.changelog

* rpiboot: add meta.changelog

* gerbera: add meta.changelog

* kdocker: add meta.changelog

* pmenu: add meta.changelog

* advancecomp: add meta.changelog

* adriconf: add meta.changelog

* interception-tools: add meta.changelog

* nabi: add meta.changelog

* gorilla-cli: add meta.changelog

* heygpt: add meta.changelog

* 6tunnel: add meta.changelog

* aria2: add meta.changelog

* logmein-hamachi: add meta.changelog

* maphosts: add meta.changelog

* qcal: add meta.changelog

* adreaper: add meta.changelog

* aflplusplus: add meta.changelog

* aide: add meta.changelog

* cameradar: add meta.changelog

* wpscan: add meta.changelog

* aha: add meta.changelog

* xcat: add meta.changelog
2024-10-04 22:35:12 +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
Sigmanificient 63d05d989e pkgs/development: remove unused arguments 2024-08-03 17:18:20 +02:00
Sigmanificient 512e8afdb9 treewide: remove unused occurence of stdenv (and other) arguments
format (will squash)
2024-07-14 04:32:56 +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
isabel 63aceac766 treewide: remove unused occurence of fetchFromGitHub argument 2024-05-30 05:56:07 +00:00
Travis A. Everett 4908b1a604 resholve: 0.10.2 -> 0.10.5
Also:
- update README
- expand passthru tests to cover packages that depend on resholve
- drop temporary patches added to tests during bats update (so that
  PR didn't need to go through staging)
2024-04-22 14:02:51 -05:00
github-actions[bot] 5c2b2d5b74 Merge master into staging-next 2024-04-17 18:01:04 +00:00
Pol Dellaiera 7a445b4728 Merge pull request #303883 from abathur/bats_1_11
bats: 1.10.0 -> 1.11.0, resholve: fix related test breakage
2024-04-17 19:21:37 +02:00
Travis A. Everett e0f9929a69 resholve: patch test breaks coming in bats 1.11
I'm preparing to update bats to 1.11.0, but a change it includes will
require updating 3 of resholve's tests. Since a full resholve source
bump would need to go through staging now, I'm just patching the tests
in the separate test derivation.
2024-04-13 12:34:27 -05:00
Thiago Kenji Okada e94a1e91f1 Merge pull request #298515 from abathur/resholve_0.10.1
resholve: 0.9.1 -> 0.10.2, ongoing cross fixes
2024-03-30 15:35:04 +00:00
Travis A. Everett 56d5b181c9 resholve: 0.9.1 -> 0.10.2, ongoing cross fixes 2024-03-28 19:45:35 -05:00
Janne Heß fcc95ff817 treewide: Fix all Nix ASTs in all markdown files
This allows for correct highlighting and maybe future automatic
formatting. The AST was verified to work with nixfmt only.
2024-03-28 09:28:12 +01:00