Commit Graph

35 Commits

Author SHA1 Message Date
R. Ryantm
fd2ce98fc5 git-town: 23.0.3 -> 24.0.0 2026-07-23 16:14:18 +00:00
R. Ryantm
7ff8dde60a git-town: 23.0.2 -> 23.0.3 2026-06-21 14:14:44 +00:00
R. Ryantm
ab83614656 git-town: 23.0.1 -> 23.0.2 2026-06-06 14:11:24 +00:00
Gabriel Nützi
7e6e81c104 git-town: fix darwin build 2026-05-16 16:08:37 +02:00
R. Ryantm
385db7c142 git-town: 23.0.0 -> 23.0.1 2026-05-15 20:42:58 +00:00
R. Ryantm
e479553628 git-town: 22.7.1 -> 23.0.0 2026-05-07 01:32:42 +00:00
R. Ryantm
b514f97e28 git-town: 22.7.0 -> 22.7.1 2026-03-30 17:46:56 +00:00
R. Ryantm
7084ba9be0 git-town: 22.6.0 -> 22.7.0 2026-03-21 21:14:40 +00:00
R. Ryantm
bb92995e33 git-town: 22.5.0 -> 22.6.0 2026-03-01 01:29:14 +00:00
Alec Snyder
e5b1578888 git-town: 22.2.0 -> 22.5.0 2026-02-11 17:22:39 +02: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
5c56e48ae0 git-town: 22.1.0 -> 22.2.0 2025-11-03 17:54:37 +00:00
R. Ryantm
cdf60ddfcf git-town: 22.0.0 -> 22.1.0 2025-10-14 01:18:50 +00:00
R. Ryantm
2fe4cbec36 git-town: 21.5.0 -> 22.0.0 2025-09-23 14:16:27 +00:00
R. Ryantm
c8509a2014 git-town: 21.4.3 -> 21.5.0 2025-09-05 20:07:20 +00:00
R. Ryantm
dfda31fa1e git-town: 21.4.1 -> 21.4.3 2025-08-20 03:08:34 +00:00
R. Ryantm
a1d3e9196f git-town: 21.3.0 -> 21.4.1 2025-08-11 21:32:28 +00:00
R. Ryantm
9187d82daf git-town: 21.2.0 -> 21.3.0 2025-07-16 20:45:59 +00:00
R. Ryantm
a2c73a5165 git-town: 21.1.0 -> 21.2.0 2025-07-03 12:44:25 +00:00
R. Ryantm
bf20087fe2 git-town: 21.0.0 -> 21.1.0 2025-06-12 15:46:57 +00:00
R. Ryantm
73524f5008 git-town: 20.2.0 -> 21.0.0 2025-06-02 07:52:06 +00:00
R. Ryantm
04916be0e3 git-town: 20.1.0 -> 20.2.0 2025-05-23 02:56:13 +00:00
FliegendeWurst
c813154858 git-town: fix cross build 2025-05-13 18:00:32 +02:00
R. Ryantm
b00f8502c3 git-town: 19.0.0 -> 20.1.0 2025-05-12 07:01:22 +00:00
R. Ryantm
f1d903df2b git-town: 18.1.0 -> 19.0.0 2025-04-20 21:39:51 +00:00
R. Ryantm
ad8e10d700 git-town: 18.0.0 -> 18.1.0 2025-03-21 07:12:02 +00:00
Nick Cao
33251be233 git-town: 17.1.1 -> 18.0.0 (#384122) 2025-02-23 09:57:14 -05:00
Martin Weinelt
338658eb82 maintainers: drop blaggacao
Banned from the community on 2023-12-17.
2025-02-23 01:35:57 +01:00
emaryn
3c9ea5061d git-town: 17.1.1 -> 18.0.0 2025-02-22 10:20:10 +08:00
emaryn
d24e487a39 git-town: refactor 2025-02-22 10:12:37 +08:00
R. Ryantm
f31593af87 git-town: 17.0.0 -> 17.1.1 2024-12-28 07:58:25 +00:00
R. Ryantm
abf8f54487 git-town: 16.7.0 -> 17.0.0 2024-12-17 21:37:47 +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
R. Ryantm
ab7512fbba git-town: 16.4.1 -> 16.7.0 2024-12-06 17:49:45 +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