Commit Graph

54 Commits

Author SHA1 Message Date
R. Ryantm
420b7929ab cirrus-cli: 0.165.1 -> 1.0.0 2026-06-06 21:03:23 +00:00
R. Ryantm
8857e8cecf cirrus-cli: 0.165.0 -> 0.165.1 2026-03-13 13:13:21 +00:00
R. Ryantm
873f21e2a2 cirrus-cli: 0.164.3 -> 0.165.0 2026-03-05 15:54:27 +00:00
R. Ryantm
768bd6ecfe cirrus-cli: 0.164.2 -> 0.164.3 2026-02-25 00:15:33 +00:00
R. Ryantm
659618ba0a cirrus-cli: 0.163.2 -> 0.164.2 2026-02-17 19:38:33 +00:00
R. Ryantm
305bff0db1 cirrus-cli: 0.162.0 -> 0.163.2 2026-02-10 10:14:45 +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
19f706ba5d cirrus-cli: 0.161.5 -> 0.162.0 2026-02-03 06:56:22 +00:00
R. Ryantm
b27ae11057 cirrus-cli: 0.160.0 -> 0.161.5 2026-01-27 10:14:26 +00:00
R. Ryantm
f9ef1fc34e cirrus-cli: 0.159.1 -> 0.160.0 2026-01-20 12:27:04 +00:00
R. Ryantm
e54a6c1e17 cirrus-cli: 0.159.0 -> 0.159.1 2026-01-14 05:40:12 +00:00
R. Ryantm
becb959ff7 cirrus-cli: 0.158.0 -> 0.159.0 2026-01-07 16:01:33 +00:00
R. Ryantm
f78c63d007 cirrus-cli: 0.157.1 -> 0.158.0 2025-12-15 04:22:43 +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
techknowlogick
0dc4a272df cirrus-cli: 0.157.0 -> 0.157.1
Diff: https://github.com/cirruslabs/cirrus-cli/compare/v0.157.0...v0.157.1
2025-12-08 12:30:21 -05:00
R. Ryantm
3ca1dd4afb cirrus-cli: 0.156.0 -> 0.157.0 2025-12-01 14:43:48 +00:00
R. Ryantm
b958e709df cirrus-cli: 0.155.1 -> 0.156.0 2025-11-03 09:10:49 +00:00
R. Ryantm
38b4dc4931 cirrus-cli: 0.155.0 -> 0.155.1 2025-10-19 09:45:09 +00:00
R. Ryantm
a07dc6b4c2 cirrus-cli: 0.154.0 -> 0.155.0 2025-10-13 08:08:55 +00:00
R. Ryantm
961d716823 cirrus-cli: 0.153.5 -> 0.154.0 2025-10-06 22:55:57 +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
27028772eb cirrus-cli: 0.153.3 -> 0.153.5 2025-09-17 23:07:14 +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
f719405707 cirrus-cli: 0.150.0 -> 0.153.3 2025-09-07 01:56:31 +00:00
R. Ryantm
bbd880f34a cirrus-cli: 0.149.0 -> 0.150.0 2025-08-17 14:12:18 +00:00
R. Ryantm
87deb17393 cirrus-cli: 0.147.0 -> 0.149.0 2025-08-09 06:23:54 +00:00
R. Ryantm
9be2ca718e cirrus-cli: 0.146.0 -> 0.147.0 2025-07-30 23:18:24 +00:00
R. Ryantm
b67c450118 cirrus-cli: 0.145.1 -> 0.146.0 2025-07-07 13:34:31 +00:00
R. Ryantm
82571f8864 cirrus-cli: 0.144.3 -> 0.145.1 2025-06-27 22:06:33 +00:00
R. Ryantm
113dfed229 cirrus-cli: 0.144.1 -> 0.144.3 2025-06-15 03:17:08 +00:00
R. Ryantm
3381a3ec2f cirrus-cli: 0.144.0 -> 0.144.1 2025-06-04 14:26:39 +00:00
techknowlogick
a4d65678d9 cirrus-cli: 0.143.3 -> 0.144.0
Diff: https://github.com/cirruslabs/cirrus-cli/compare/v0.143.3...v0.144.0
2025-05-05 23:41:31 -04:00
R. Ryantm
b90c35b300 cirrus-cli: 0.142.1 -> 0.143.3 2025-04-29 23:26:38 +00:00
R. Ryantm
80bc4c2cac cirrus-cli: 0.141.0 -> 0.142.1 2025-04-20 23:46:22 +00:00
R. Ryantm
287bb37acd cirrus-cli: 0.140.8 -> 0.141.0 2025-04-11 12:17:20 +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
574e1aaf40 cirrus-cli: 0.139.2 -> 0.140.8 2025-04-01 10:02:14 +00:00
R. Ryantm
90d292aaaf cirrus-cli: 0.138.3 -> 0.139.2 2025-03-21 11:01:46 +00:00
R. Ryantm
66b2099535 cirrus-cli: 0.138.1 -> 0.138.3 2025-03-09 17:40:16 +00:00
R. Ryantm
e22df0cf23 cirrus-cli: 0.137.3 -> 0.138.1 2025-02-24 13:57:53 +00:00
R. Ryantm
0d2649a0b8 cirrus-cli: 0.135.0 -> 0.137.3 2025-02-10 17:00:45 +00:00
R. Ryantm
41c93870d0 cirrus-cli: 0.134.0 -> 0.135.0 2025-01-29 00:11:52 +00:00
R. Ryantm
6eae496f04 cirrus-cli: 0.133.2 -> 0.134.0 2025-01-16 03:03:36 +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
techknowlogick
20d4125ac0 cirrus-cli: 0.133.0 -> 0.133.2 (#363702)
Diff: https://github.com/cirruslabs/cirrus-cli/compare/v0.133.0...v0.133.2
2024-12-09 22:29:34 -05:00
techknowlogick
747ce40fe2 cirrus-cli: 0.132.0 -> 0.133.0
Diff: https://github.com/cirruslabs/cirrus-cli/compare/v0.132.0...v0.133.0
2024-11-29 10:58:35 -05:00
R. Ryantm
2790c1ffe2 cirrus-cli: 0.131.2 -> 0.132.0 2024-11-19 07:17:27 +00:00
techknowlogick
82c34a24e7 cirrus-cli: 0.130.2 -> 0.131.2
Diff: https://github.com/cirruslabs/cirrus-cli/compare/v0.130.2...v0.131.2
2024-10-28 18:51:36 -07:00
techknowlogick
25d0778fa2 cirrus-cli: 0.126.1 -> 0.130.2
Diff: https://github.com/cirruslabs/cirrus-cli/compare/v0.126.1...v0.130.2
2024-10-27 22:41:21 -04:00