Commit Graph

39 Commits

Author SHA1 Message Date
R. Ryantm
8112ecb15e glooctl: 1.21.12 -> 1.22.0 2026-08-04 08:35:50 +00:00
R. Ryantm
2116c17d57 glooctl: 1.21.11 -> 1.21.12 2026-07-16 20:42:37 +00:00
R. Ryantm
ba95f7867d glooctl: 1.21.7 -> 1.21.11 2026-07-02 03:02:44 +00:00
R. Ryantm
e3459d0dff glooctl: 1.21.6 -> 1.21.7 2026-06-05 18:52:10 +00:00
R. Ryantm
71fc74908d glooctl: 1.21.4 -> 1.21.6 2026-05-22 22:11:56 +00:00
R. Ryantm
9bbb5082c1 glooctl: 1.21.3 -> 1.21.4 2026-05-04 19:48:30 +00:00
R. Ryantm
1cf605929b glooctl: 1.21.2 -> 1.21.3 2026-04-26 05:46:37 +00:00
R. Ryantm
052c707c36 glooctl: 1.20.10 -> 1.21.2 2026-04-01 17:55:19 +00:00
R. Ryantm
4924818925 glooctl: 1.20.9 -> 1.20.10 2026-02-26 20:04:48 +00: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
R. Ryantm
65db0e46d4 glooctl: 1.20.8 -> 1.20.9 2026-01-16 09:50:59 +00:00
R. Ryantm
a2020b62b4 glooctl: 1.20.7 -> 1.20.8 2026-01-09 20:05:46 +00:00
R. Ryantm
5b917586a3 glooctl: 1.20.6 -> 1.20.7 2026-01-02 21:48:14 +00:00
R. Ryantm
d508b32039 glooctl: 1.20.4 -> 1.20.6 2025-12-27 22:20:39 +00:00
R. Ryantm
646a573b93 glooctl: 1.20.3 -> 1.20.4 2025-12-05 19:05:11 +00:00
R. Ryantm
cec129a7d1 glooctl: 1.20.2 -> 1.20.3 2025-10-22 17:06:27 +00:00
R. Ryantm
9318b960f3 glooctl: 1.20.1 -> 1.20.2 2025-10-16 20:08:13 +00:00
R. Ryantm
9b5a6b9c9a glooctl: 1.20.0 -> 1.20.1 2025-10-04 16:51:19 +00:00
R. Ryantm
5d878a8147 glooctl: 1.19.6 -> 1.20.0 2025-09-23 17:02:11 +00:00
Peder Bergebakken Sundt
8bffdd4ccf treewide: gate command execution for installShellCompletion behind buildPlatform.canExecute hostPlatform
This treewide conditions execution of the built applications for the purpose of generating shell completions behind `stdenv.buildPlatform.canExecute stdenv.hostPlatform`, which helps cross. This is a common issue I spot during review, let's prevent copy-paste errors by fixing it treewide.

Candidates were located with:

```shell
rg 'installShellCompletion' -l -tnix | xargs grep -F 'stdenv.buildPlatform.canExecute stdenv.hostPlatform' -L
```

Then I migrated the obvious cases which would not require a rebuild, as a means of testing.
This diff was not scripted. Should be zero rebuilds.

<details>
<summary>
Alternatives
</summary>

Alternatively I could have use this pattern:

```nix
postInstall = lib.optionalString (stdenv.hostPlatform.emulatorAvailable buildPackages) (
let
    emulator = stdenv.hostPlatform.emulator buildPackages;
in
''
    installShellCompletion --cmd foobar \
    --bash <(${emulator} $out/bin/foobar completion bash) \
    --fish <(${emulator} $out/bin/foobar completion fish) \
    --zsh <(${emulator} $out/bin/foobar completion zsh)
''
);
```

but that would cause rebuilds and will also require testing.

---

An other alternative is to use the binary from the corresponding package in `buildPackages`.
This however would also cause rebuilds and will also require testing.

</details>
2025-09-12 14:08:39 +02:00
R. Ryantm
3f7c6e6492 glooctl: 1.19.4 -> 1.19.6 2025-08-31 19:27:02 +00:00
R. Ryantm
31d486e301 glooctl: 1.19.2 -> 1.19.4 2025-07-20 10:40:03 +00:00
R. Ryantm
7d1f8c6488 glooctl: 1.19.1 -> 1.19.2 2025-07-02 14:30:04 +00:00
R. Ryantm
d9a5dc035a glooctl: 1.19.0 -> 1.19.1 2025-06-22 14:18:02 +00:00
R. Ryantm
6a1f1556a3 glooctl: 1.18.17 -> 1.19.0 2025-06-16 22:28:11 +02:00
R. Ryantm
b01124614f glooctl: 1.18.16 -> 1.18.17 2025-05-13 07:08:08 +00:00
R. Ryantm
ee25a0df1c glooctl: 1.18.14 -> 1.18.16 2025-04-24 00:13:26 +00:00
R. Ryantm
d025b00558 glooctl: 1.18.13 -> 1.18.14 2025-04-14 19:51:59 +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
Pol Dellaiera
65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
R. Ryantm
fa7f39584c glooctl: 1.18.10 -> 1.18.13 2025-03-22 17:56:14 +00:00
R. Ryantm
e41f2f35a5 glooctl: 1.18.7 -> 1.18.10 2025-02-26 08:21:38 +00:00
R. Ryantm
e109175c7d glooctl: 1.18.6 -> 1.18.7 2025-02-12 15:09:41 +00:00
R. Ryantm
6f7b06b66c glooctl: 1.18.5 -> 1.18.6 2025-01-27 11:28:40 +00:00
R. Ryantm
a8aaba982c glooctl: 1.18.2 -> 1.18.5 2025-01-14 05:32:51 +00:00
R. Ryantm
f9be289a76 glooctl: 1.18.0 -> 1.18.2 2024-12-24 05:24:40 +00:00
R. Ryantm
9f58354e35 glooctl: 1.17.16 -> 1.18.0 2024-12-13 02:21:38 +00:00
R. Ryantm
aef4e7d0bd glooctl: 1.17.14 -> 1.17.16 2024-11-16 00:47:57 +00:00
aleksana
571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00