Commit Graph

38 Commits

Author SHA1 Message Date
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
R. Ryantm
3d5ebe452b linuxkit: 1.8.1 -> 1.8.2 2025-09-25 15:53:33 +00:00
R. Ryantm
8befc6a5a8 linuxkit: 1.7.1 -> 1.8.1 2025-09-14 11:35:58 +00:00
R. Ryantm
0a66cf9096 linuxkit: 1.7.0 -> 1.7.1 2025-07-15 20:52:26 +00:00
R. Ryantm
0eb80d7d23 linuxkit: 1.6.0 -> 1.7.0 2025-07-05 10:34:30 +00:00
Wolfgang Walther
8dc97a3219 linuxkit: 1.5.3 -> 1.6.0 (#403661) 2025-06-01 09:57:58 +00:00
R. Ryantm
8aa2101862 linuxkit: 1.5.3 -> 1.6.0 2025-05-02 15:58:50 +00:00
Ihar Hrachyshka
dd0f03a56c treewide: remove usage of deprecated apple_sdk framework stubs
They are not doing anything right now. This is in preparation for their
complete removal from the tree.

Note: several changes that affect the derivation inputs (e.g. removal of
references to stub paths in build instructions) were left out. They will
be cleaned up the next iteration and will require special care.

Note: this PR is a result of a mix of ugly regex (not AST) based
automation and some manual labor. For reference, the regex automation
part was hacked in: https://github.com/booxter/nix-clean-apple_sdk

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-04-19 20:28:20 -04: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
R. Ryantm
540870a4d0 linuxkit: 1.5.2 -> 1.5.3 2024-12-24 13:27:55 +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
R. Ryantm
03b9672698 linuxkit: 1.5.1 -> 1.5.2 2024-10-03 07:21:32 +00: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
R. Ryantm
c393c3cdf6 linuxkit: 1.5.0 -> 1.5.1 2024-08-27 12:54:45 +00:00
R. Ryantm
0ed130acf6 linuxkit: 1.4.0 -> 1.5.0 2024-08-05 23:40:48 +00:00
R. Ryantm
7739b0cb1e linuxkit: 1.3.0 -> 1.4.0 2024-07-24 23:38:27 +00:00
R. Ryantm
e6b4fde991 linuxkit: 1.2.0 -> 1.3.0 2024-07-12 02:48:37 +00: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
Weijia Wang
a20762bfec Merge pull request #294991 from r-ryantm/auto-update/linuxkit
linuxkit: 1.0.1 -> 1.2.0
2024-03-23 22:12:16 +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
R. Ryantm
ff4e5d04de linuxkit: 1.0.1 -> 1.2.0 2024-03-11 13:45:14 +00:00
Aaron Jheng
d38485921a treewide: vendorSha256 -> vendorHash (#256514) 2023-09-21 19:11:11 +02:00
Sandro Jäckel
3ad7d71afe treewide: don't set platforms.unix for buildGoModule 2023-06-13 17:54:26 +03:00
Boey Maun Suang
137b97e2f6 linuxkit: Sign binary with entitlements on Darwin
In order to use the Virtualization framework at runtime, a macOS binary
must be signed with the appropriate entitlement(s).  The default targets
in the linuxkit Makefiles would do this for us, but the current package
definition does not use those Makefiles, so we must call the right
target directly.
2023-05-22 10:37:16 +03:00
Boey Maun Suang
64faf2372d linuxkit: Fix Darwin runtime OS detection
The wrapper that linuxkit uses around the macOS Virtualization framework
tries to detect which OS it is running on, and aborts if it thinks that
the macOS version is not new enough to have the required framework
features.  This commit (mostly) fixes that macOS version detection when
the code is linked as if it is linked against the 10.12 SDK (as the
current Darwin ld wrapper does via the -platform_version switch), but is
then run on macOS 11 or later.
2023-02-15 20:24:20 +11:00
Boey Maun Suang
e1f44d6092 linuxkit: Fix building on Darwin
Nixpkgs on Darwin can currently build against either the macOS 10.12 or
the 11 SDK, but some vendored code in linuxkit expects at least the
macOS 12 SDK at build time, even though useful parts of that vendored
code still run on macOS 11, and the rest of linuxkit still runs on
10.12.  This commit enables building against the macOS 11 SDK.
2023-02-15 20:24:12 +11:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
R. Ryantm
bafe84ca62 linuxkit: 1.0.0 -> 1.0.1 2022-11-08 00:53:33 +00:00
Aaron Jheng
e76981c859 linuxkit: 0.8.0 -> 1.0.0 2022-10-14 01:55:40 +00:00
R. Ryantm
1383ef4376 linuxkit: 0.8 -> 1.0.0 2022-10-13 17:08:36 +00:00
zowoq
e6494966dd treewide: buildFlagsArray -> ldflags 2021-08-26 15:43:28 +10:00
Mario Rodas
67de12f991 linuxkit: use buildFlagsArray 2020-07-27 16:20:00 -05:00
R. RyanTM
405d540652 linuxkit: 0.7 -> 0.8 2020-07-27 19:30:08 +00:00
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Nick Novitski
e65244ee56 linuxkit: 2017-07-08 -> 0.7 2019-07-25 21:32:20 -07:00
volth
52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Will Dietz
ceff05aa4f linuxkit: init at 2017-07-08 2017-07-08 09:25:01 -05:00