nixpkgs/pkgs/stdenv
Dan Callahan ec6c594944 stdenv/check-meta: Fix error message for disallowed unfree packages
Nixpkgs tries to print a helpful message when it blocks unfree packages,
but the suggestion is subtly broken. The predicate only matches on the
package's name, but the suggestion includes the full name-version pair.

Fixed by formatting the message with the same function as the predicate.

This issue arises because check-meta defines its own local getName with
semantics divergent from lib.getName. The former includes the version,
the latter does not.

Example Before:

    Alternatively you can configure a predicate to allow specific packages:
      { nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
          "obsidian-1.5.12"
        ];
      }

Example After:

    Alternatively you can configure a predicate to allow specific packages:
      { nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
          "obsidian"
        ];
      }

Fixes #303116
2024-04-10 16:15:24 +01:00
..
cross pkgs: fix typos 2023-05-19 22:31:04 -04:00
custom
cygwin
darwin pkgs/top-level/release.nix: drop unused dist targets 2024-04-04 21:40:08 +01:00
freebsd
generic stdenv/check-meta: Fix error message for disallowed unfree packages 2024-04-10 16:15:24 +01:00
linux pkgs/top-level/release.nix: drop unused dist targets 2024-04-04 21:40:08 +01:00
native stdenv: fix stagesNative 2023-07-02 19:07:23 +10:00
nix
tests
adapters.nix Merge pull request #297711 from hercules-ci/rename-adapters-finalAttrs 2024-03-21 17:15:28 +01:00
booter.nix pkgs/stdenv: fix typo in booter.nix docs 2023-09-04 22:24:12 +02:00
default.nix darwin.stdenv: refactor stdenv definition 2023-07-02 17:56:24 -04:00