Commit Graph

52 Commits

Author SHA1 Message Date
R. Ryantm
a43b5aa3f2 gitu: 0.42.0 -> 0.43.0 2026-07-11 21:58:44 +00:00
R. Ryantm
41ef5dc6f2 gitu: 0.41.0 -> 0.42.0 2026-05-22 22:10:11 +00:00
Harinn
60e3da3bbd gitu: 0.40.0 -> 0.41.0 2026-03-30 03:30:08 +07:00
Marcin Serwin
a55aee61c7 gitu: patch unit tests (#486724) 2026-02-21 13:13:02 +00:00
quantenzitrone
d26a1a9e5e various: switch buildRustPackage 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 buildRustPackage

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:53:17 +01:00
Evan Richter
2abfc750af gitu: patch unit tests
fixes #486623
2026-02-03 15:35:19 -07:00
R. Ryantm
a2e2b4700c gitu: 0.38.0 -> 0.40.0 2025-12-22 11:54:40 +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
R. Ryantm
d6a82215d1 gitu: 0.37.0 -> 0.38.0 2025-10-10 22:17:14 +00:00
R. Ryantm
25889d746f gitu: 0.36.0 -> 0.37.0 2025-09-28 19:57:49 +00:00
R. Ryantm
569ae77252 gitu: 0.35.0 -> 0.36.0 2025-09-17 16:03:47 +00:00
R. Ryantm
edb178b842 gitu: 0.34.0 -> 0.35.0 2025-09-06 19:58:15 +00:00
TomaSajt
398b16e16c treewide: remove useFetchCargoVendor usages 2025-07-26 11:39:35 +02:00
R. Ryantm
28fa84c9d3 gitu: 0.33.0 -> 0.34.0 2025-06-29 12:56:12 +00:00
R. Ryantm
af96bfa61e gitu: 0.32.0 -> 0.33.0 2025-06-11 08:59:21 +00:00
R. Ryantm
4e2e6ec48b gitu: 0.31.0 -> 0.32.0 2025-06-01 05:26:34 +00:00
R. Ryantm
85826b33ba gitu: 0.30.3 -> 0.31.0 2025-05-10 20:52:03 +00:00
K900
e22856305b Merge remote-tracking branch 'origin/staging-next' into staging 2025-04-21 21:18:16 +03:00
R. Ryantm
ceccd2e480 gitu: 0.29.0 -> 0.30.3 2025-04-21 13:52:05 +00:00
Ihar Hrachyshka
dd0f03a56c treewide: remove usage of deprecated apple_sdk framework stubs
They are not doing anything right now. This is in preparation for their
complete removal from the tree.

Note: several changes that affect the derivation inputs (e.g. removal of
references to stub paths in build instructions) were left out. They will
be cleaned up the next iteration and will require special care.

Note: this PR is a result of a mix of ugly regex (not AST) based
automation and some manual labor. For reference, the regex automation
part was hacked in: https://github.com/booxter/nix-clean-apple_sdk

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-04-19 20:28:20 -04: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
7d1ee94c27 gitu: 0.28.2 -> 0.29.0 2025-03-16 23:07:57 +00:00
R. Ryantm
654f075652 gitu: 0.28.1 -> 0.28.2 2025-03-04 09:02:59 +00:00
R. Ryantm
4449897334 gitu: 0.28.0 -> 0.28.1 2025-02-19 11:20:09 +00:00
K900
bbe2061815 Merge remote-tracking branch 'origin/master' into staging-next 2025-02-05 18:33:37 +03:00
R. Ryantm
c4f72f8f65 gitu: 0.27.0 -> 0.28.0 2025-02-05 00:48:39 +00:00
Alyssa Ross
63bff8c132 treewide: migrate to fetchCargoVendor, batch 1
Cargo 1.84.0 seems to have changed the output format of cargo vendor
again, once again invalidating fetchCargoTarball FOD hashes.  It's
time to fix this once and for all, switching across the board to
fetchCargoVendor, which is not dependent on cargo vendor's output
format.

It should be possible to reproduce this diff.  To do so, get the list
of files changed by this commit, e.g. with git diff --name-only, then
run the following two commands, each with that list of files as their
standard input:

	xargs sed -i 's/^\(. *\)\(cargoHash\)\b/\1useFetchCargoVendor = true;\n\1cargoHash/'
	cut -d / -f 4 | xargs -n 1 nix-update --version=skip

This will take a long time.  It might be possible to parallelize it
using xargs' -P option.  I haven't tested it.
2025-01-23 11:46:43 +01:00
Silvan Mosberger
667d42c00d 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 57b193d8dd
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:27:17 +01: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
adf2b41bfc gitu: 0.26.0 -> 0.27.0 2024-12-06 16:06:23 +00:00
R. Ryantm
a81bfa5b3d gitu: 0.25.0 -> 0.26.0 2024-10-25 07:40:40 +00:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
R. Ryantm
8c2d7df19b gitu: 0.24.0 -> 0.25.0 2024-09-04 05:02:59 +00:00
R. Ryantm
2b86917e7a gitu: 0.23.1 -> 0.24.0 2024-08-09 21:32:23 +00:00
R. Ryantm
bed7864b47 gitu: 0.23.0 -> 0.23.1 2024-07-28 20:05:34 +00:00
R. Ryantm
2dc47672f6 gitu: 0.22.1 -> 0.23.0 2024-07-19 02:22:39 +00:00
R. Ryantm
ac1354c603 gitu: 0.21.1 -> 0.22.1 2024-07-06 17:27:27 +00:00
R. Ryantm
afb245456e gitu: 0.21.0 -> 0.21.1 2024-06-24 02:55:38 +00:00
R. Ryantm
0b0a11c94f gitu: 0.20.1 -> 0.21.0 2024-06-17 01:01:55 +00:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
R. Ryantm
ca5b495b30 gitu: 0.19.2 -> 0.20.1 2024-05-09 01:36:36 +00:00
R. Ryantm
f0d119ad91 gitu: 0.17.1 -> 0.19.2 2024-04-27 19:37:50 +00:00
Keto
9b4a8a70d0 gitu: 0.16.0 -> 0.17.1 2024-04-19 15:00:00 -04:00
Evan Richter
ac630c499a gitu: 0.15.0 -> 0.16.0 2024-04-16 01:02:53 -06:00
R. Ryantm
646500b85f gitu: 0.13.1 -> 0.15.0 2024-04-11 04:45:01 +00:00
R. Ryantm
aaad7053b3 gitu: 0.11.0 -> 0.13.1 2024-04-05 23:49:51 +00:00
Evan Richter
6aa88482a7 gitu: 0.8.0 -> 0.11.0 2024-03-31 11:42:56 +02:00
R. Ryantm
686126fe95 gitu: 0.7.2 -> 0.8.0 2024-03-22 18:26:29 +00:00
R. Ryantm
0e00fb74db gitu: 0.6.2 -> 0.7.2 2024-03-16 20:32:06 +00:00