relevant docs link: https://nixos.org/manual/nixpkgs/stable/#sec-problems
I wanted to audit my own system for packages which don’t have maintainers and found the above docs showing that there is a “maintainerless” kind of problem and how to instantiate <nixpkgs> to warn when a package has that problem. Looked promising.
I decided to test in a repl like so:
nix repl
Nix 2.34.8
Type :? for help.
nix-repl> pkgs = import <nixpkgs> { config.problems.matchers = [ { kind = "maintainerless"; handler = "warn"; } ]; }
And then when I evaluate pkgs.xz I see a bunch of “maintainerless” packages.
nix-repl> pkgs.xz
evaluation warning: Package 'bison-3.8.2' in /nix/store/1idms180igdck24bs1327f8l5pd6r2mz-source/pkgs/by-name/bi/bison/package.nix:55 has the following problem: maintainerless: This package has no declared maintainer, i.e.
an empty `meta.maintainers` and `meta.teams` attribute. See https://nixos.org/manual/nixpkgs/unstable#sec-problems
evaluation warning: Package 'gnum4-1.4.21' in /nix/store/1idms180igdck24bs1327f8l5pd6r2mz-source/pkgs/by-name/gn/gnum4/package.nix:51 has the following problem: maintainerless: This package has no declared maintainer, i.e. an empty `meta.maintainers` and `meta.teams` attribute. See https://nixos.org/manual/nixpkgs/unstable#sec-problems
evaluation warning: Package 'expand-response-params' in /nix/store/1idms180igdck24bs1327f8l5pd6r2mz-source/pkgs/by-name/ex/expand-response-params/package.nix:30 has the following problem: maintainerless: This package has no declared maintainer, i.e. an empty `meta.maintainers` and `meta.teams` attribute. See https://nixos.org/manual/nixpkgs/unstable#sec-problems
evaluation warning: Package 'expand-response-params' in /nix/store/1idms180igdck24bs1327f8l5pd6r2mz-source/pkgs/by-name/ex/expand-response-params/package.nix:30 has the following problem: maintainerless: This package has no declared maintainer, i.e. an empty `meta.maintainers` and `meta.teams` attribute. See https://nixos.org/manual/nixpkgs/unstable#sec-problems
evaluation warning: Package 'gmp-6.3.0' in /nix/store/1idms180igdck24bs1327f8l5pd6r2mz-source/pkgs/development/libraries/gmp/6.x.nix:83 has the following problem: maintainerless: This package has no declared maintainer, i.e. an empty `meta.maintainers` and `meta.teams` attribute. See https://nixos.org/manual/nixpkgs/unstable#sec-problems
evaluation warning: Package 'mpfr-4.2.2' in /nix/store/1idms180igdck24bs1327f8l5pd6r2mz-source/pkgs/by-name/mp/mpfr/package.nix:76 has the following problem: maintainerless: This package has no declared maintainer, i.e. an empty `meta.maintainers` and `meta.teams` attribute. See https://nixos.org/manual/nixpkgs/unstable#sec-problems
evaluation warning: Package 'libmpc-1.4.1' in /nix/store/1idms180igdck24bs1327f8l5pd6r2mz-source/pkgs/by-name/li/libmpc/package.nix:39 has the following problem: maintainerless: This package has no declared maintainer, i.e. an empty `meta.maintainers` and `meta.teams` attribute. See https://nixos.org/manual/nixpkgs/unstable#sec-problems
evaluation warning: Package 'isl-0.20' in /nix/store/1idms180igdck24bs1327f8l5pd6r2mz-source/pkgs/development/libraries/isl/generic.nix:50 has the following problem: maintainerless: This package has no declared maintainer, i.e. an empty `meta.maintainers` and `meta.teams` attribute. See https://nixos.org/manual/nixpkgs/unstable#sec-problems
evaluation warning: Package 'patchelf-0.15.2' in /nix/store/1idms180igdck24bs1327f8l5pd6r2mz-source/pkgs/development/tools/misc/patchelf/default.nix:33 has the following problem: maintainerless: This package has no declared maintainer, i.e. an empty `meta.maintainers` and `meta.teams` attribute. See https://nixos.org/manual/nixpkgs/unstable#sec-problems
evaluation warning: Package 'autoconf-2.69' in /nix/store/1idms180igdck24bs1327f8l5pd6r2mz-source/pkgs/development/tools/misc/autoconf/2.69.nix:46 has the following problem: maintainerless: This package has no declared maintainer, i.e. an empty `meta.maintainers` and `meta.teams` attribute. See https://nixos.org/manual/nixpkgs/unstable#sec-problems
evaluation warning: Package 'libunistring-1.4.2' in /nix/store/1idms180igdck24bs1327f8l5pd6r2mz-source/pkgs/development/libraries/libunistring/default.nix:68 has the following problem: maintainerless: This package has no declared maintainer, i.e. an empty `meta.maintainers` and `meta.teams` attribute. See https://nixos.org/manual/nixpkgs/unstable#sec-problems
evaluation warning: Package 'xz-5.8.3' in /nix/store/1idms180igdck24bs1327f8l5pd6r2mz-source/pkgs/tools/compression/xz/default.nix:82 has the following problem: maintainerless: This package has no declared maintainer, i.e. an empty `meta.maintainers` and `meta.teams` attribute. See https://nixos.org/manual/nixpkgs/unstable#sec-problems
evaluation warning: Package 'patchelf-0.15.2' in /nix/store/1idms180igdck24bs1327f8l5pd6r2mz-source/pkgs/development/tools/misc/patchelf/default.nix:33 has the following problem: maintainerless: This package has no declared maintainer, i.e. an empty `meta.maintainers` and `meta.teams` attribute. See https://nixos.org/manual/nixpkgs/unstable#sec-problems
evaluation warning: Package 'xz-5.8.3' in /nix/store/1idms180igdck24bs1327f8l5pd6r2mz-source/pkgs/tools/compression/xz/default.nix:82 has the following problem: maintainerless: This package has no declared maintainer, i.e. an empty `meta.maintainers` and `meta.teams` attribute. See https://nixos.org/manual/nixpkgs/unstable#sec-problems
evaluation warning: Package 'binutils-patchelfed-ld-wrapper-2.46' in /nix/store/1idms180igdck24bs1327f8l5pd6r2mz-source/pkgs/build-support/bintools-wrapper/default.nix:487 has the following problem: maintainerless: This package has no declared maintainer, i.e. an empty `meta.maintainers` and `meta.teams` attribute. See https://nixos.org/manual/nixpkgs/unstable#sec-problems
evaluation warning: Package 'expand-response-params' in /nix/store/1idms180igdck24bs1327f8l5pd6r2mz-source/pkgs/by-name/ex/expand-response-params/package.nix:30 has the following problem: maintainerless: This package has no declared maintainer, i.e. an empty `meta.maintainers` and `meta.teams` attribute. See https://nixos.org/manual/nixpkgs/unstable#sec-problems
evaluation warning: Package 'gmp-6.3.0' in /nix/store/1idms180igdck24bs1327f8l5pd6r2mz-source/pkgs/development/libraries/gmp/6.x.nix:83 has the following problem: maintainerless: This package has no declared maintainer, i.e. an empty `meta.maintainers` and `meta.teams` attribute. See https://nixos.org/manual/nixpkgs/unstable#sec-problems
evaluation warning: Package 'mpfr-4.2.2' in /nix/store/1idms180igdck24bs1327f8l5pd6r2mz-source/pkgs/by-name/mp/mpfr/package.nix:76 has the following problem: maintainerless: This package has no declared maintainer, i.e. an empty `meta.maintainers` and `meta.teams` attribute. See https://nixos.org/manual/nixpkgs/unstable#sec-problems
evaluation warning: Package 'libmpc-1.4.1' in /nix/store/1idms180igdck24bs1327f8l5pd6r2mz-source/pkgs/by-name/li/libmpc/package.nix:39 has the following problem: maintainerless: This package has no declared maintainer, i.e. an empty `meta.maintainers` and `meta.teams` attribute. See https://nixos.org/manual/nixpkgs/unstable#sec-problems
evaluation warning: Package 'isl-0.20' in /nix/store/1idms180igdck24bs1327f8l5pd6r2mz-source/pkgs/development/libraries/isl/generic.nix:50 has the following problem: maintainerless: This package has no declared maintainer, i.e. an empty `meta.maintainers` and `meta.teams` attribute. See https://nixos.org/manual/nixpkgs/unstable#sec-problems
evaluation warning: Package 'expand-response-params' in /nix/store/1idms180igdck24bs1327f8l5pd6r2mz-source/pkgs/by-name/ex/expand-response-params/package.nix:30 has the following problem: maintainerless: This package has no declared maintainer, i.e. an empty `meta.maintainers` and `meta.teams` attribute. See https://nixos.org/manual/nixpkgs/unstable#sec-problems
«derivation /nix/store/869a4capm7n9g9k0kyy2v1r2h6g73y1y-xz-5.8.3.drv»
nix-repl>
As you can see, there are a lot of pretty standard packages with the “maintainerless” label. This label appears to be trivially correct, in that the files declaring these packages often don’t set a meta.maintainers or meta.team. However, it also is pretty trivially useless as a label if even these packages are getting flagged as having this problem, and I don’t really believe that these packages are unmaintained in a practical sense. I tried evaluating my own NixOS system config against this option and there is so much noise that it’s hard to do an eyeball audit.
Is there a better method to audit my system?