Commit Graph

79 Commits

Author SHA1 Message Date
Yohann Boniface
b3848c0ee8 kubectl-ktop: remove duplicate (#374336) 2026-08-09 03:45:15 +00:00
2kybe3
9dc557378d treewide: follow some GitHub redirects for fetchFromGitHub
generated using https://git.kybe.xyz/2kybe3/nixpkgs-github-redirect

continuation of: #538981
2026-08-01 19:26:08 +02:00
Ivan Kovnatsky
38b07bd715 kubectl-ktop: remove duplicate
Co-authored-by: Noah Markert <github@next-side.de>
2026-08-01 10:39:18 +03:00
Sandro Jäckel
21434813ad ktailctl: 0.22.0 -> 0.22.1
Changelog: https://github.com/f-koehler/KTailctl/releases/tag/v0.22.1
Diff: https://github.com/f-koehler/KTailctl/compare/v0.22.0...v0.22.1
2026-06-29 21:31:19 +02:00
Sandro Jäckel
a0389e0e8c ktailctl: 0.21.5 -> 0.22.0
Diff: https://github.com/f-koehler/KTailctl/compare/v0.21.5...v0.22.0
Changelog: https://github.com/f-koehler/KTailctl/releases/tag/v0.22.0
2026-06-27 15:11:33 +02:00
Martin Fischer
ecddc8dab1 ktfmt: 0.61 -> 0.63 2026-05-29 20:29:15 +02:00
Harinn
bfb59334d0 kty: use system oniguruma to fix build 2026-05-08 21:48:42 +07:00
K900
e12830446f treewide: drop now-unused KF5 and Qt5 libraries 2026-05-08 09:34:21 +03:00
Tom Fitzhenry
55efd0620a tlshd: add modular service and test 2026-04-13 03:16:52 +00:00
Sandro
ea81f18842 ktfmt: 0.51 -> 0.61 (#483326) 2026-03-04 00:30:19 +00:00
quantenzitrone
4e4f1f2b72 kthxbye: move to pkgs/by-name
this shouldn't create any rebuilds
2026-02-18 22:45:35 +01:00
Robert Craigie
b6203fa802 ktfmt: 0.51 -> 0.61
note: ktfmt removed their maven setup in
81277c3359
2026-02-09 13:04:51 +00:00
Matthias Beyer
86e4cb3518 ktailctl: 0.21.3 -> 0.21.5 (#481915) 2026-02-07 20:18:10 +00:00
Fernando Rodrigues
693e12715a various: switch buildGoModule packages to use finalAttrs (#487704) 2026-02-07 09:35:52 +00:00
quantenzitrone
d26a1a9e5e various: switch buildRustPackage packages to use finalAttrs
this shouldn't create any rebuilds

the following script was used to generate this:
```fish
#!/usr/bin/env fish

# nix shell .#nixfmt nixpkgs#{nixf-diagnose,ripgrep,sd}

set base (git rev-parse HEAD)

set scope pkgs/by-name
set builder buildRustPackage

set files (rg --files-with-matches -F "$builder rec {" $scope | sort -u)

for file in $files
    echo $file
    sd -F "$builder rec {" "$builder (finalAttrs: {" $file
    # version
    sd -F 'version}' 'finalAttrs.version}' $file
    sd -F '${version' '${finalAttrs.version' $file
    sd -F '= version' '= finalAttrs.version' $file
    sd -F 'inherit version;' 'inherit (finalAttrs) version;' $file
    sd -F ' + version;' ' + finalAttrs.version;' $file
    sd 'replaceStrings (.*) version' 'replaceStrings $1 finalAttrs.version' $file
    sd -F 'splitVersion version' 'splitVersion finalAttrs.version' $file
    sd -F 'versionAtLeast version' 'versionAtLeast finalAttrs.version' $file
    sd 'versions\.([a-z]+) version' 'versions.$1 finalAttrs.version' $file
    # src
    sd -F 'src}' 'finalAttrs.src}' $file
    sd -F '${src' '${finalAttrs.src' $file
    sd -F '= src' '= finalAttrs.src' $file
    sd -F 'inherit src;' 'inherit (finalAttrs) src;' $file
    sd -F 'inherit (src' 'inherit (finalAttrs.src' $file
    # meta
    sd -F '${meta' '${finalAttrs.meta' $file
    sd -F '= meta' '= finalAttrs.meta' $file
    sd -F 'inherit (meta' 'inherit (finalAttrs.meta' $file
    # other
    sd -F 'inherit version src;' 'inherit (finalAttrs) version src;' $file
    sd -F 'inherit src version;' 'inherit (finalAttrs) src version;' $file
    sd -F 'makeLibraryPath buildInputs' 'makeLibraryPath finalAttrs.buildInputs' $file
    sd -F 'buildInputs}' 'finalAttrs.buildInputs}' $file
    sd -F 'desktopItem}' 'finalAttrs.desktopItem}' $file
    sd -F 'runtimeLibs}' 'finalAttrs.runtimeLibs}' $file
    sd -F 'libPath}' 'finalAttrs.libPath}' $file
    sd -F 'runtimeDependencies}' 'finalAttrs.runtimeDependencies}' $file
    sd -F 'nativeRuntimeInputs}' 'finalAttrs.nativeRuntimeInputs}' $file
    sd -F '(!doCheck)' '(!finalAttrs.doCheck)' $file
    sd -F 'optional doCheck' 'optional finalAttrs.doCheck' $file
    sd -F 'optionals doCheck' 'optionals finalAttrs.doCheck' $file
    sd -F '++ runtimeDependencies' '++ finalAttrs.runtimeDependencies' $file
    # pname (restored afterwards)
    sd -F 'pname}' 'finalAttrs.pname}' $file
    sd -F '${pname' '${finalAttrs.pname' $file
    sd -F '= pname' '= finalAttrs.pname' $file
    # close finalAttrs lambda
    echo ')' >>$file
    # catch some errors early
    if ! nixfmt $file
        git restore $file
        continue
    end
    if ! nixf-diagnose -i sema-primop-overridden $file
        git restore $file
        continue
    end
end

set torestore (rg -F .finalAttrs --files-with-matches $scope)
if test (count $torestore) -gt 0
    git restore $torestore
end
set torestore (rg -F finalAttrs.pname --files-with-matches $scope)
if test (count $torestore) -gt 0
    git restore $torestore
end

# commit for faster eval times
git add pkgs
git commit --no-gpg-sign -m temp
set torestore

for file in $files
    # file hasn't changed
    if git diff --quiet $base $file
        continue
    end
    # try to eval the package to definitely catch all errors
    echo $file
    set pname (string split / $file -f 4)
    if ! nix eval .#$pname
        set torestore $torestore $file
    end
end

# restore files that don't eval
git reset --soft $base
git restore --staged .
if test (count $torestore) -gt 0
    git restore $torestore
end
```

after that some manual cleanup was done:
- restoring files that cause changes in the number of lines
- restoring files that cause rebuilds
- restoring files that cause merge conflicts with staging
2026-02-07 09:53:17 +01:00
quantenzitrone
9380e05c3c various: switch buildGoModule packages to use finalAttrs
this shouldn't create any rebuilds

the following script was used to generate this:
```fish
#!/usr/bin/env fish

# nix shell .#nixfmt nixpkgs#{nixf-diagnose,ripgrep,sd}

set base (git rev-parse HEAD)

set scope pkgs/by-name
set builder buildGoModule

set files (rg --files-with-matches -F "$builder rec {" $scope | sort -u)

for file in $files
    echo $file
    sd -F "$builder rec {" "$builder (finalAttrs: {" $file
    # version
    sd -F 'version}' 'finalAttrs.version}' $file
    sd -F '${version' '${finalAttrs.version' $file
    sd -F '= version' '= finalAttrs.version' $file
    sd -F 'inherit version;' 'inherit (finalAttrs) version;' $file
    sd -F ' + version;' ' + finalAttrs.version;' $file
    sd 'replaceStrings (.*) version' 'replaceStrings $1 finalAttrs.version' $file
    sd -F 'splitVersion version' 'splitVersion finalAttrs.version' $file
    sd -F 'versionAtLeast version' 'versionAtLeast finalAttrs.version' $file
    sd 'versions\.([a-z]+) version' 'versions.$1 finalAttrs.version' $file
    # src
    sd -F 'src}' 'finalAttrs.src}' $file
    sd -F '${src' '${finalAttrs.src' $file
    sd -F '= src' '= finalAttrs.src' $file
    sd -F 'inherit src;' 'inherit (finalAttrs) src;' $file
    sd -F 'inherit (src' 'inherit (finalAttrs.src' $file
    # meta
    sd -F '${meta' '${finalAttrs.meta' $file
    sd -F '= meta' '= finalAttrs.meta' $file
    sd -F 'inherit (meta' 'inherit (finalAttrs.meta' $file
    # other
    sd -F 'inherit version src;' 'inherit (finalAttrs) version src;' $file
    sd -F 'inherit src version;' 'inherit (finalAttrs) src version;' $file
    sd -F 'makeLibraryPath buildInputs' 'makeLibraryPath finalAttrs.buildInputs' $file
    sd -F 'buildInputs}' 'finalAttrs.buildInputs}' $file
    sd -F 'desktopItem}' 'finalAttrs.desktopItem}' $file
    sd -F 'runtimeLibs}' 'finalAttrs.runtimeLibs}' $file
    sd -F 'libPath}' 'finalAttrs.libPath}' $file
    sd -F 'runtimeDependencies}' 'finalAttrs.runtimeDependencies}' $file
    sd -F 'nativeRuntimeInputs}' 'finalAttrs.nativeRuntimeInputs}' $file
    sd -F '(!doCheck)' '(!finalAttrs.doCheck)' $file
    sd -F 'optional doCheck' 'optional finalAttrs.doCheck' $file
    sd -F 'optionals doCheck' 'optionals finalAttrs.doCheck' $file
    sd -F '++ runtimeDependencies' '++ finalAttrs.runtimeDependencies' $file
    # pname (restored afterwards)
    sd -F 'pname}' 'finalAttrs.pname}' $file
    sd -F '${pname' '${finalAttrs.pname' $file
    sd -F '= pname' '= finalAttrs.pname' $file
    # close finalAttrs lambda
    echo ')' >>$file
    # catch some errors early
    if ! nixfmt $file
        git restore $file
        continue
    end
    if ! nixf-diagnose -i sema-primop-overridden $file
        git restore $file
        continue
    end
end

set torestore (rg -F .finalAttrs --files-with-matches $scope)
if test (count $torestore) -gt 0
    git restore $torestore
end
set torestore (rg -F finalAttrs.pname --files-with-matches $scope)
if test (count $torestore) -gt 0
    git restore $torestore
end

# commit for faster eval times
git add pkgs
git commit --no-gpg-sign -m temp
set torestore

for file in $files
    # file hasn't changed
    if git diff --quiet $base $file
        continue
    end
    # try to eval the package to definitely catch all errors
    echo $file
    set pname (string split / $file -f 4)
    if ! nix eval .#$pname
        set torestore $torestore $file
    end
end

# restore files that don't eval
git reset --soft $base
git restore --staged .
if test (count $torestore) -gt 0
    git restore $torestore
end
```

after that some manual cleanup was done:
- restoring files that cause changes in the number of lines
- restoring files that cause rebuilds
- restoring files that cause merge conflicts with staging
2026-02-07 09:28:59 +01:00
quantenzitrone
6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00
Sandro Jäckel
9d26d074ff ktailctl: 0.21.3 -> 0.21.5
Diff: https://github.com/f-koehler/KTailctl/compare/v0.21.3...v0.21.5
2026-01-20 11:39:47 +01:00
Michael Daniels
8970f698c3 ktlint: 1.7.1 -> 1.8.0 (#461349) 2025-12-26 02:09:19 +00: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
R. Ryantm
c6fc08652d ktlint: 1.7.1 -> 1.8.0 2025-11-13 19:43:49 +00:00
Markus Kowalewski
576fc6cd90 ktls-utils: 1.2.1 -> 1.3.0 (#454512) 2025-11-03 21:44:01 +00:00
Sandro Jäckel
7ac0bf8ee4 ktailctl: 0.21.2 -> 0.21.3
Diff: https://github.com/f-koehler/KTailctl/compare/v0.21.2...v0.21.3
2025-10-22 15:25:53 +02:00
R. Ryantm
19b4b20475 ktls-utils: 1.2.1 -> 1.3.0 2025-10-22 10:32:23 +00:00
Markus Kowalewski
2b714d231a ktls-utils: fix meta.mainProgram 2025-10-18 14:02:58 +02:00
R. Ryantm
f64a7d021a ktx-tools: 4.4.1 -> 4.4.2 2025-10-11 14:09:47 +00:00
Wolfgang Walther
c283f32d29 treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00
Guy Chronister
7132a3c6e5 ktailctl: migrate to by-name 2025-10-04 11:29:20 -05:00
R. Ryantm
48a6ba8a8b ktx-tools: 4.4.0 -> 4.4.1 2025-10-04 03:59:32 +00:00
Guy Chronister
409e80d244 ktimetracker: migrate to by-name
ktimetracker: 5.0.1 -> 6.0.0
2025-08-05 19:28:34 +00:00
Guy Chronister
8559510d8d ktextaddons: migrate to by-name
ktextaddons: refactor for by-name
2025-08-01 16:33:28 +00:00
TomaSajt
398b16e16c treewide: remove useFetchCargoVendor usages 2025-07-26 11:39:35 +02:00
jopejoe1
57354d2e0b ktlint: 1.6.0 -> 1.7.1 (#425288) 2025-07-26 10:23:12 +02:00
R. Ryantm
c7c780cbeb ktls-utils: 1.2.0 -> 1.2.1 2025-07-24 21:51:38 +00:00
R. Ryantm
2820979e51 ktlint: 1.6.0 -> 1.7.1 2025-07-23 16:07:12 +00:00
R. Ryantm
33c8d05a4c ktls-utils: 1.1.0 -> 1.2.0 2025-07-16 11:19:21 +00:00
R. Ryantm
8ca55bf6b3 ktop: 0.3.7 -> 0.4.1 2025-07-05 01:34:08 +00:00
R. Ryantm
67873a24f0 ktls-utils: 1.0.0 -> 1.1.0 2025-06-08 16:18:58 +00:00
Wolfgang Walther
1ddea38b07 ktls-utils: 0.11 -> 1.0.0 (#404943) 2025-06-01 12:39:30 +00:00
Wolfgang Walther
096300fb91 ktlint: 1.5.0 -> 1.6.0 (#408839) 2025-06-01 11:18:55 +00:00
Peder Bergebakken Sundt
c4f02ff31e treewide: substitute pname for strings 2025-05-29 17:04:28 +02:00
R. Ryantm
069e551422 ktlint: 1.5.0 -> 1.6.0 2025-05-19 19:35:45 +00:00
R. Ryantm
681138f501 ktls-utils: 0.11 -> 1.0.0 2025-05-07 14:54:54 +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
jopejoe1
4326deeece ktx-tools: 4.3.2 -> 4.4.0 (#394619) 2025-04-05 13:18:54 +02:00
nixpkgs-merge-bot[bot]
965f2f0e46 ktor-cli: 0.4.0 -> 0.5.0 (#395492)
Co-authored-by: nartsisss <nartsiss@proton.me>
2025-04-02 14:12:51 +00:00
R. Ryantm
b3c9faf1f5 ktor-cli: 0.4.0 -> 0.5.0 2025-04-02 13:38:16 +00:00
Silvan Mosberger
374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00