Commit Graph

41 Commits

Author SHA1 Message Date
R. Ryantm
d9f94f1592 doctl: 1.160.1 -> 1.166.0 2026-08-06 12:01:30 +00:00
R. Ryantm
9e7efbd9d8 doctl: 1.160.0 -> 1.160.1 2026-06-04 21:51:14 +00:00
R. Ryantm
1daa21c01b doctl: 1.159.0 -> 1.160.0 2026-05-26 12:55:40 +00:00
R. Ryantm
5d3dcdbc43 doctl: 1.157.0 -> 1.159.0 2026-05-15 06:52:21 +00:00
R. Ryantm
b5fb43668e doctl: 1.155.0 -> 1.157.0 2026-05-06 06:54:07 +00:00
R. Ryantm
9706e39d0d doctl: 1.154.0 -> 1.155.0 2026-04-16 14:46:08 +00:00
R. Ryantm
7d70e03bed doctl: 1.153.0 -> 1.154.0 2026-04-05 12:40:56 +00:00
R. Ryantm
b7a17e3445 doctl: 1.152.0 -> 1.153.0 2026-03-27 13:28:35 +00:00
R. Ryantm
bf691e23c7 doctl: 1.151.0 -> 1.152.0 2026-03-18 14:48:59 +00:00
R. Ryantm
46b5eedffc doctl: 1.150.0 -> 1.151.0 2026-02-23 14:41:15 +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
fbfc1340f4 doctl: 1.149.0 -> 1.150.0 2026-02-04 00:36:39 +00:00
R. Ryantm
ee60122c12 doctl: 1.148.0 -> 1.149.0 2026-01-22 14:55:36 +00:00
R. Ryantm
57c159945a doctl: 1.147.0 -> 1.148.0 2025-12-09 15:53:13 +00:00
R. Ryantm
8f0acc6c22 doctl: 1.145.0 -> 1.147.0 2025-11-07 00:12:28 +00:00
R. Ryantm
a01f617fd5 doctl: 1.142.0 -> 1.145.0 2025-10-04 04:27:11 +00:00
R. Ryantm
7f9a9794ff doctl: 1.141.0 -> 1.142.0 2025-09-11 15:56:32 +00:00
R. Ryantm
f3b3c657e4 doctl: 1.139.0 -> 1.141.0 2025-08-25 15:19:24 +00:00
R. Ryantm
6bafcc7c5d doctl: 1.137.0 -> 1.139.0 2025-08-17 01:42:54 +00:00
R. Ryantm
25d9628e87 doctl: 1.135.0 -> 1.137.0 2025-08-08 14:03:44 +00:00
R. Ryantm
9e85736135 doctl: 1.134.0 -> 1.135.0 2025-07-30 06:40:04 +00:00
R. Ryantm
1f43da78b1 doctl: 1.133.0 -> 1.134.0 2025-07-21 21:20:18 +00:00
R. Ryantm
fbb5da0cfd doctl: 1.132.0 -> 1.133.0 2025-07-13 11:45:30 +00:00
R. Ryantm
2c7492a2c0 doctl: 1.131.0 -> 1.132.0 2025-07-03 20:47:25 +00:00
R. Ryantm
886a573a1c doctl: 1.130.0 -> 1.131.0 2025-06-22 15:50:14 +00:00
R. Ryantm
23a96aad74 doctl: 1.128.0 -> 1.130.0 2025-06-13 12:21:26 +00:00
R. Ryantm
8e57e96eb1 doctl: 1.127.0 -> 1.128.0 2025-06-03 02:31:15 +00:00
R. Ryantm
77d66b5f31 doctl: 1.125.1 -> 1.127.0 2025-05-18 02:25:54 +04:00
R. Ryantm
3c7fd6bd1f doctl: 1.125.0 -> 1.125.1 2025-05-06 15:13:38 +00:00
R. Ryantm
715be797be doctl: 1.124.0 -> 1.125.0 2025-04-29 20:11:49 +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
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
R. Ryantm
7058e4ebfa doctl: 1.123.0 -> 1.124.0 2025-03-25 20:16:27 +00:00
R. Ryantm
2a04f2c067 doctl: 1.122.0 -> 1.123.0 2025-03-10 01:36:53 +00:00
R. Ryantm
2d447f9d42 doctl: 1.121.0 -> 1.122.0 2025-02-25 01:47:01 +00:00
R. Ryantm
5c3a5c9803 doctl: 1.120.2 -> 1.121.0 2025-02-06 00:58:34 +00:00
R. Ryantm
090ca56f44 doctl: 1.120.1 -> 1.120.2 2025-01-19 10:11:32 +00:00
R. Ryantm
57b4e69372 doctl: 1.120.0 -> 1.120.1 2025-01-07 02:24:33 +00:00
R. Ryantm
39951445c2 doctl: 1.116.0 -> 1.120.0 2024-12-17 19:30:41 +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