Commit Graph

29 Commits

Author SHA1 Message Date
R. Ryantm
5603d31e0a cilium-cli: 0.19.6 -> 0.19.7 2026-07-28 23:14:26 +00:00
R. Ryantm
294553f5b3 cilium-cli: 0.19.5 -> 0.19.6 2026-07-15 01:30:35 +00:00
R. Ryantm
188aa5e1b0 cilium-cli: 0.19.4 -> 0.19.5 2026-06-25 13:10:55 +00:00
R. Ryantm
ae8161b80a cilium-cli: 0.19.2 -> 0.19.4 2026-05-20 20:33:32 +00:00
R. Ryantm
88f4167ce0 cilium-cli: 0.19.0 -> 0.19.2 2026-03-05 09:53:35 +00:00
Stefan Frijters
2bf28837a1 cilium-cli: use writableTmpDirAsHomeHook 2026-02-16 10:40:37 +01:00
Stefan Frijters
46a64a46c8 cilium-cli: move env variable(s) into env for structuredAttrs 2026-02-13 12:01:05 +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
R. Ryantm
da5502e12e cilium-cli: 0.18.8 -> 0.19.0 2026-01-16 21:38:58 +00:00
Bryan A. S.
2ab0c48b03 maintainers: drop bryanasdev000 2025-11-26 13:42:02 -03:00
R. Ryantm
395df2e74a cilium-cli: 0.18.7 -> 0.18.8 2025-10-22 20:47:42 +00:00
h7x4
3725337277 treewide: gate command execution for installShellCompletion behind buildPlatform.canExecute hostPlatform (#442353) 2025-09-22 01:09:44 +00:00
R. Ryantm
8190e4d4a6 cilium-cli: 0.18.6 -> 0.18.7 2025-09-14 17:32:32 +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
fc5d1ff631 cilium-cli: 0.18.5 -> 0.18.6 2025-07-30 23:18:13 +00:00
R. Ryantm
0b56352427 cilium-cli: 0.18.4 -> 0.18.5 2025-07-02 20:30:55 +00:00
Ryan Yin
71452432b3 cilium-cli: add ryan4yin as a maintainer 2025-06-22 14:25:23 +08:00
R. Ryantm
d74ccaa95c cilium-cli: 0.18.3 -> 0.18.4 2025-06-04 01:01:54 +00:00
R. Ryantm
fc85ed9d25 cilium-cli: 0.18.2 -> 0.18.3 2025-04-04 06:41:49 +00:00
R. Ryantm
a2b61ec9e0 cilium-cli: 0.18.0 -> 0.18.2 2025-03-18 00:10:44 +00:00
R. Ryantm
241277cf44 cilium-cli: 0.16.24 -> 0.18.0 2025-03-06 03:33:52 +00:00
R. Ryantm
4f634039f3 cilium-cli: 0.16.23 -> 0.16.24 2025-02-03 02:24:03 +00:00
R. Ryantm
edad941e03 cilium-cli: 0.16.22 -> 0.16.23 2025-01-09 01:10:32 +00:00
Peder Bergebakken Sundt
0cd04d3036 treewide: migrate fetchgit rev = "refs/tags/..." to tag 2025-01-04 00:19:17 +01:00
R. Ryantm
b51e7b6d2e cilium-cli: 0.16.21 -> 0.16.22 2024-12-18 05:35:05 +01:00
Weijia Wang
e4627c2140 cilium-cli: 0.16.20 -> 0.16.21 2024-12-08 18:39:33 +01:00
Weijia Wang
f00eb1996f cilium-cli: reformat with nixfmt 2024-12-08 18:39:09 +01:00
R. Ryantm
9253eb0baa cilium-cli: 0.16.19 -> 0.16.20 2024-11-27 12:43:08 +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