Commit Graph

54 Commits

Author SHA1 Message Date
R. Ryantm
8ce724a70a oelint-adv: 9.9.2 -> 9.10.3 2026-07-28 12:54:09 +00:00
Eman Resu
ff094f60ad treewide: replace more singleton license lists 2026-07-15 14:04:39 -04:00
R. Ryantm
6a2d236bb7 oelint-adv: 9.9.1 -> 9.9.2 2026-07-10 14:20:05 +00:00
R. Ryantm
a5aa47bb60 oelint-adv: 9.9.0 -> 9.9.1 2026-07-01 13:08:08 +00:00
R. Ryantm
42a2a1bbeb oelint-adv: 9.8.4 -> 9.9.0 2026-06-22 21:45:38 +00:00
R. Ryantm
668a960aeb oelint-adv: 9.8.2 -> 9.8.4 2026-06-14 06:32:14 +00:00
R. Ryantm
7fc066ca9e oelint-adv: 9.8.0 -> 9.8.2 2026-06-05 05:13:38 +00:00
R. Ryantm
45b62e7a76 oelint-adv: 9.7.1 -> 9.8.0 2026-05-26 18:59:17 +00:00
Otavio Salvador
343fcf565f oelint-adv: 8.2.2 -> 9.7.1
Upstream replaced setup.cfg with pyproject.toml.

Changelog: https://github.com/priv-kweihmann/oelint-adv/releases/tag/9.7.1
2026-05-15 23:25:26 -03:00
quantenzitrone
18dc8a95fb various: switch buildPythonApplication 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 buildPythonApplication

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
    # pname (restored afterwards)
    sd -F 'pname}' 'finalAttrs.pname}' $file
    sd -F '${pname' '${finalAttrs.pname' $file
    sd -F '= pname' '= finalAttrs.pname' $file
    # combinations
    sd -F 'inherit version src;' 'inherit (finalAttrs) version src;' $file
    sd -F 'inherit src version;' 'inherit (finalAttrs) src version;' $file
    sd -F 'inherit version pname;' 'inherit (finalAttrs) version pname;' $file
    sd -F 'inherit pname version;' 'inherit (finalAttrs) pname version;' $file
    sd -F 'inherit pname src version;' 'inherit (finalAttrs) pname src version;' $file
    sd -F 'inherit pname version src;' 'inherit (finalAttrs) pname version src;' $file
    sd -F 'inherit src pname version;' 'inherit (finalAttrs) src pname version;' $file
    sd -F 'inherit src version pname;' 'inherit (finalAttrs) src version pname;' $file
    sd -F 'inherit version pname src;' 'inherit (finalAttrs) version pname src;' $file
    sd -F 'inherit version src pname;' 'inherit (finalAttrs) version src pname;' $file
    # other
    sd -F 'makeLibraryPath buildInputs' 'makeLibraryPath finalAttrs.buildInputs' $file
    sd -F 'nativeBuildInputs}' 'finalAttrs.nativeBuildInputs}' $file
    sd -F 'buildInputs}' 'finalAttrs.buildInputs}' $file
    sd -F 'propagatedBuildInputs}' 'finalAttrs.propagatedBuildInputs}' $file
    sd -F 'desktopItem}' 'finalAttrs.desktopItem}' $file
    sd -F 'runtimeLibs}' 'finalAttrs.runtimeLibs}' $file
    sd -F 'makePythonPath dependencies' 'makePythonPath finalAttrs.dependencies' $file
    sd -F 'makePythonPath propagatedBuildInputs' 'makePythonPath finalAttrs.propagatedBuildInputs' $file
    sd -F 'libPath}' 'finalAttrs.libPath}' $file
    sd -F 'runtimeDependencies}' 'finalAttrs.runtimeDependencies}' $file
    sd -F 'runtimeDeps}' 'finalAttrs.runtimeDeps}' $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
    # 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 10:06:06 +01:00
quantenzitrone
6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01: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
94265437b7 oelint-adv: 8.2.1 -> 8.2.2 2025-09-24 14:35:52 +00:00
R. Ryantm
895f937c09 oelint-adv: 8.2.0 -> 8.2.1 2025-09-13 09:03:48 +00:00
R. Ryantm
1692fdd948 oelint-adv: 8.1.4 -> 8.2.0 2025-07-27 03:09:16 +00:00
R. Ryantm
14b5131da7 oelint-adv: 8.1.2 -> 8.1.4 2025-07-18 22:17:04 +00:00
R. Ryantm
54c0bcc96e oelint-adv: 7.2.6 -> 8.1.2 2025-06-20 21:28:08 +00:00
Gaetan Lepage
b6b6930180 oelint-adv: 6.7.1 -> 7.2.6
Diff: https://github.com/priv-kweihmann/oelint-adv/compare/refs/tags/6.7.1...refs/tags/7.2.6

Changelog: https://github.com/priv-kweihmann/oelint-adv/releases/tag/7.2.6
2025-04-29 09:57:28 +02:00
R. Ryantm
be8ee66fc6 oelint-adv: 6.6.9 -> 6.7.1 2025-02-06 18:43:27 +00:00
R. Ryantm
cb821851f7 oelint-adv: 6.6.6 -> 6.6.9 2025-01-13 09:49:15 -05:00
Otavio Salvador
8c6f4ad9d6 oelint-adv: 6.1.0 -> 6.6.6
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2025-01-06 14:40:08 -03:00
Peder Bergebakken Sundt
0cd04d3036 treewide: migrate fetchgit rev = "refs/tags/..." to tag 2025-01-04 00:19: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
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
R. Ryantm
fa9f5ff086 oelint-adv: 6.0.0 -> 6.1.0, fetch source from github, enable tests 2024-09-30 09:32:00 -04:00
R. Ryantm
1b233e4c95 oelint-adv: 5.7.2 -> 6.0.0 2024-09-08 11:00:14 +00:00
R. Ryantm
2ee502c687 oelint-adv: 5.7.1 -> 5.7.2 2024-08-12 14:18:16 +00:00
R. Ryantm
bd5504e74b oelint-adv: 5.7.0 -> 5.7.1 2024-08-04 22:27:19 +00:00
R. Ryantm
40d460c2a9 oelint-adv: 5.6.0 -> 5.7.0 2024-06-27 06:54:57 +00:00
R. Ryantm
1fbb99350c oelint-adv: 5.5.0 -> 5.6.0 2024-06-20 19:43:01 +00:00
R. Ryantm
0c3d1be8c1 oelint-adv: 5.4.0 -> 5.5.0 2024-06-05 19:26:42 +00:00
R. Ryantm
08b49ba5db oelint-adv: 5.3.2 -> 5.4.0 2024-05-29 12:15:01 +00:00
R. Ryantm
6318b3093e oelint-adv: 5.3.1 -> 5.3.2 2024-05-18 22:10:04 +00:00
R. Ryantm
81f92b2ae3 oelint-adv: 5.3.0 -> 5.3.1 2024-04-28 05:44:45 +00:00
R. Ryantm
4cf1d81d4a oelint-adv: 5.1.3 -> 5.3.0 2024-04-23 01:29:16 +00:00
R. Ryantm
3813d8a534 oelint-adv: 5.1.2 -> 5.1.3 2024-04-16 13:19:20 +00:00
Otavio Salvador
0b361dd84d oelint-adv: 4.4.5 -> 5.1.2 2024-04-11 15:02:23 -03:00
R. Ryantm
7d09b94c1f oelint-adv: 4.4.4 -> 4.4.5 2024-03-23 00:10:55 +00:00
R. Ryantm
a999202794 oelint-adv: 4.4.1 -> 4.4.4 2024-03-19 11:35:31 +00:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
R. Ryantm
77b008a874 oelint-adv: 4.4.0 -> 4.4.1 2024-02-28 05:47:09 +00:00
R. Ryantm
d53ad6a7f0 oelint-adv: 4.3.1 -> 4.4.0 2024-02-25 01:00:16 +00:00
R. Ryantm
4c5ee2488d oelint-adv: 4.3.0 -> 4.3.1 2024-02-21 03:34:45 +00:00
R. Ryantm
1162ba8949 oelint-adv: 4.2.0 -> 4.3.0 2024-02-17 12:41:30 +00:00
R. Ryantm
d74c40cb73 oelint-adv: 4.1.1 -> 4.2.0 2024-02-10 07:12:13 +00:00
R. Ryantm
521555a534 oelint-adv: 4.1.0 -> 4.1.1 2024-02-03 11:57:20 +00:00
R. Ryantm
946ac7831c oelint-adv: 3.26.12 -> 4.1.0 2024-01-28 01:03:46 +00:00
R. Ryantm
1dbdb3bf87 oelint-adv: 3.26.6 -> 3.26.12 2024-01-07 22:47:32 +00:00
R. Ryantm
75b4536f28 oelint-adv: 3.26.5 -> 3.26.6 2024-01-02 02:37:27 +00:00
R. Ryantm
3f1692a172 oelint-adv: 3.26.4 -> 3.26.5 2023-12-17 09:52:53 +00:00