nixpkgs/pkgs/stdenv/generic
Sergei Trofimovich 075597b340 stdenv: don't discard string context from ContentAddressed derivations
Without the change build for packages that use `disallowedReferences`
fails in `contentAddressedByDefault = true` mode:

    $ nix build -f. ruby_3_1 --arg config '{ contentAddressedByDefault = true; }'
    ...
    error: derivation contains an illegal reference specifier '/0j3hif3ni7zl5zhlzzr5q2q23z66136mnzp75pyiqp5c72q14im2'
    error: 1 dependencies of derivation '/nix/store/39ji7qp225pxvrm8cgvzmyjqsyis2n0h-ruby-3.1.2.drv' failed to build

Original intent of https://github.com/NixOS/nixpkgs/pull/211783 was to
avoid pulling in actual derivation for reference scanning purposes.

Unfortunately CA derivations's outputPath are placeholders until they
are instantiated.

Let's restore string context for CA derivations for now.
2024-11-25 20:12:19 +00:00
..
builder.sh
check-meta.nix Revert "pkgs/top-level/config.nix: nixfmt, declare options" 2024-08-05 16:44:45 +00:00
common-path.nix
default-builder.sh treewide: refactor .attrs.sh detection 2023-10-04 18:36:57 +02:00
default.nix stdenv: set NIX_DONT_SET_RPATH_FOR_TARGET on Darwin 2024-07-13 17:54:35 -04:00
make-derivation.nix stdenv: don't discard string context from ContentAddressed derivations 2024-11-25 20:12:19 +00:00
meta-types.nix stdenv/check-meta: Use bespoke type checking 2023-12-26 15:14:42 +13:00
setup.sh pkgs/stdenv/generic/setup.sh: lint with ShellCheck (#351849) 2024-11-01 08:52:44 -07:00