Commit Graph

42 Commits

Author SHA1 Message Date
Ben Siraphob
f82dc8ebe9 pkgs/development: fix typos
Assisted-by: Claude Code (claude-opus-5)
2026-08-02 15:56:57 -07:00
2kybe3
e9a44549b9 treewide: follow some GitHub redirects for fetchFromGitHub
generated using https://git.kybe.xyz/2kybe3/nixpkgs-github-redirect

continuation of: #548162
2026-08-01 23:56:32 +02:00
Emily
6d91911139 Revert "swiftPackages.swift{,NoSwiftDriver}: work around ld64 hardening issue"
The ld64 issue has been fixed.

This reverts commit eb22b856d1.
2026-07-15 03:26:25 +01:00
Emily
eb22b856d1 swiftPackages.swift{,NoSwiftDriver}: work around ld64 hardening issue 2026-07-04 20:06:51 +01:00
David McFarland
20a48f24b4 swiftpm: fix linux build 2026-02-10 23:26:07 -04:00
Sam
6e1a464f82 swiftPackages.swiftpm: patch swift-crypto as needed 2025-10-11 14:47:33 -07:00
Sam
0800438fcd swiftPackages.swiftpm: use newer swift-crypto to fix missing symbols
This is 3.0.0 -> 3.15.1, so it's even semver compatible
2025-10-11 14:47:25 -07:00
Sam
4744337c52 swiftPackages.swiftpm: add bootstrap derivations for new dependencies 2025-10-11 14:44:18 -07:00
Sam
d18cfb1058 swiftPackages.swiftpm: drop upstreamed patches
Some of these were not technically upstreamed but all have been fixed
2025-10-11 14:44:18 -07:00
Sam
483fd74afc swiftPackages.swiftpm: fix patches that no longer apply cleanly 2025-10-11 14:44:17 -07:00
Sam
8e4a990997 swiftPackages.*: swap from replace to replace-fail 2025-10-11 14:44:17 -07:00
Sam
c221712e43 swiftPackages.*: update generated SwiftPM dependencies
This includes adding new dependencies when appropriate
2025-10-10 19:51:06 -07:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Fernando Rodrigues
05580f4b44 treewide: switch instances of lib.teams.*.members to the new meta.teams attribute
Follow-up to #394797.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-04-25 22:20:17 -03:00
Peder Bergebakken Sundt
5aba99242e treewide: fix typos in comments
Made with

```shell
git restore .
fd '\.nix$' pkgs/ --type f -j1 -x bash -xc "$(cat <<"EOF"
    typos --no-check-filenames --write-changes "$1"
    git diff --exit-code "$1" && exit
    #( git diff "$1" | grep -qE "^\+ +[^# ]") && git restore "$1"
    count1="$( bat --language nix --diff --style changes "$1" --theme "Monokai Extended" --color always | aha --no-header | grep -E '^<span style="color:olive;">~</span> ' | wc -l )"
    count2="$( bat --language nix --diff --style changes "$1" --theme "Monokai Extended" --color always | aha --no-header | grep -E '^<span style="color:olive;">~</span> (<span style="color:#f8f8f2;"> *</span>)?<span style="color:#75715e;">.*</span>$' | wc -l )"
    [[ $count1 -ne $count2 ]] && git restore "$1"
EOF
)" -- {}
```

and filtered with `GIT_DIFF_OPTS='--unified=15' git -c interactive.singleKey=true add --patch`

I initially tried using the tree-sitter cli, python bindings and even ast-grep through various means, but this is what I ended up with.
2025-02-24 10:44:41 +01:00
Wolfgang Walther
b19d0f6d3d treewide: replace substituteAll with replaceVars 2025-02-10 22:51:56 +01:00
Emily
793706e9e6 swiftpm: remove old Darwin SDK pattern detritus 2025-01-03 17:41:02 +00:00
Emily
6240f6c3e3 swiftpm: remove code for macOS < 11 2025-01-03 17:41:02 +00: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
Masum Reza
e13831335f treewide: stdenv.is -> stdenv.hostPlatform.is (#356363)
* treewide: stdenv.is -> stdenv.hostPlatform.is

* treewide: nixfmt due to ci error
2024-11-17 16:11:54 +05:30
Randy Eckenrode
f4af7eacc4 swiftpm: use darwinMinVersionHook to set the deployment target 2024-10-10 17:24:27 -04:00
Artturin
f0e657f3b1 Merge branch 'master' into staging-next 2024-09-25 06:05:01 +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
Wolfgang Walther
fc37487ab2 swiftpm: shellcheck setup hook 2024-09-08 22:06:41 +02:00
Wolfgang Walther
9df84d4c9a swiftpm: support structuredAttrs in setup hook
Currently no problematic package using multiple swiftpmFlags in nixpkgs
to test.
2024-09-08 22:06:41 +02:00
Anderson Torres
7246208bc7 treewide: update meta.maintainers for Swift suite 2024-07-17 23:34:16 -03:00
Anderson Torres
2a9a026118 treewide: add lib.teams.swift.members to Swift suite 2024-07-17 23:34:16 -03:00
Anderson Torres
c9f7d60011 treewide: remove dtzWill as maintainer [no orphans]
Since theey is not active in a long span of time.

None of the packages in this commit are orphan.

All the packages listed here are related to Swift programming language compiler
suite.
2024-07-17 23:34:16 -03:00
Alexis Hildebrandt
f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02:00
Maximilian Bosch
2dcdf60272 swift: fix build w/ glibc-2.39
Failing Hydra build: https://hydra.nixos.org/build/249763077/nixlog/12

The problem is that glibc commit
64b1a44183a3094672ed304532bedb9acc707554 marked the `FILE*` argument of a few
functions including `fread` & `ferror` as non-null. The applied patch
("Android: add better nullability checks for nullability annotations added in NDK 26")
is targeted for the Android platform, but fixes said issue as well: the
handle returned from `fopen` is of type `Optional<T>` and the `guard`
expression unwraps that now (and throws an exception if `nil` is
returned). The previous `nil`-check didn't modify the type of `fp`, but
only raised the exception and moved on with `Optional<T>`.

It's a little sad that the patch needs to be applied at so many places,
but I guess that's what you get with language-level package managers 🤷
Also, seems good-enough to me given that it's actually temporary, the
patch is already upstream and will probably be obsolete at one of the
next Swift updates.
2024-03-02 19:01:51 +01:00
Pavel Sobolev
56aa31d0b4 swiftpm: force-unwrap file handles in swift-tools-support-core 2023-11-21 21:19:55 +03:00
figsoda
8733c5536e swiftpm: move pkg-config to nativeBuildInputs 2023-05-29 19:51:01 -04:00
Stéphan Kochen
f85d12198f swift: 5.7.3 -> 5.8 2023-04-30 15:03:20 +02:00
Stéphan Kochen
72fa71720b swiftpm: disable -index-store-path Apple extension 2023-02-01 08:29:36 +01:00
Stéphan Kochen
cb959e7018 swift: 5.7 -> 5.7.3 2023-02-01 08:29:35 +01:00
Stéphan Kochen
aae355626f swiftpm: factor out cmake glue installation 2022-11-21 11:04:54 +01:00
toonn
a8f9977c6f swiftpm: typo fixes 2022-11-21 11:04:54 +01:00
Stéphan Kochen
7d559a3cb3 swiftPackages: update swiftpm2nix generated files 2022-11-21 11:04:54 +01:00
Stéphan Kochen
449e2f1b01 swift: track version in a central sources.nix 2022-11-15 14:24:25 +01:00
toonn
0e08b082b8 swiftpm: improve setup hook shell conditions 2022-11-15 14:24:02 +01:00
Stéphan Kochen
dcb0eaf66d swift-driver: init at 5.7 2022-10-10 21:26:50 +02:00
Stéphan Kochen
ece9224c8a swiftpm: init at 5.7 2022-10-10 21:26:50 +02:00