nixpkgs/pkgs/development/perl-modules
Maximilian Bosch 8bc5104a6e
treewide: refactor .attrs.sh detection
When specifying the `builder` attribute in `stdenv.mkDerivation`, this
will be effectively transformed into

    builtins.derivation {
      builder = stdenv.shell;
      args = [ "-e" builder ];
    }

This also means that `default-builder.sh` is never sourced and as a
result it's not guaranteed that `$NIX_ATTRS_SH_FILE` is set to a correct
location[1].

Also, we need to source `.attrs.sh` to source `$stdenv`. So, the
following is done now:

* If `$NIX_ATTRS_SH_FILE` points to a correct location, then use it.
  Directly using `.attrs.sh` is problematic for `nix-shell(1)` usage
  (see previous commit for more context), so prefer the environment
  variable if possible.

* Otherwise, if `.attrs.sh` exists, then use it. See [1] for when this
  can happen.

* If neither applies, it can be assumed that `__structuredAttrs` is
  turned off and thus nothing needs to be done.

[1] It's possible that it doesn't exist at all - in case of Nix 2.3 or
    it can point to a wrong location on older Nix versions with a bug in
    `__structuredAttrs`.
2023-10-04 18:36:57 +02:00
..
Bio-Ext-Align
DBD-SQLite
expression-generator
generic treewide: refactor .attrs.sh detection 2023-10-04 18:36:57 +02:00
ham
maatkit
MNI
Mozilla-LDAP
Percona-Toolkit
Po4a perlPackages.Po4a: disable tests on darwin 2023-06-22 13:07:51 -07:00
strip-nondeterminism strip-nondeterminism: fix zip handler 2023-06-03 23:43:41 +03:00
WWW-YoutubeViewer
alien-sdl.patch
boost-geometry-utils-fix-oom.patch
catalyst-plugin-static-simple-etag.patch
CatalystAuthenticationStoreHtpasswd-test-replace-DES-hash-with-bcrypt.patch perlPackages.CatalystAuthenticationStoreHtpasswd: add patch to avoid DES encrypted passwords in tests 2023-03-26 04:14:40 +02:00
CatalystXScriptServerStarman-fork-arg.patch
crypt-openpgp-remove-impure-keygen-tests.patch
Data-Clone-fix-apostrophe-package-separator.patch perlPackages.DataClone: add patch for perl 5.38.0 2023-08-01 17:01:47 +02:00
Data-UUID-CVE-2013-4184.patch perlPackages.DataUUID: Add patch for CVE-2013-4184 2023-07-24 17:11:59 +02:00
Device-OUI-1.04-hash.patch
Exception-Base-remove-smartmatch-when-5.38.0.patch perlPackages.ExceptionBase: add patch for perl 5.38.0 2023-08-01 17:01:54 +02:00
ExtUtils-Constant-fix-indirect-method-call-in-test.patch perlPackages.ExtUtilsConstant: add patch for failing test 2023-08-01 17:01:54 +02:00
Google-ProtocolBuffers-multiline-comments.patch
lwp-protocol-https-cert-file.patch
mhonarc.patch
module-pluggable.patch
net-amazon-mechanicalturk.patch
Paranoid-blessed-path.patch
perl-opengl-gl-extensions.txt
perl-opengl.patch
Plack-test-replace-DES-hash-with-bcrypt.patch perlPackages.Plack: add patch to avoid DES encrypted passwords in tests 2023-03-25 23:20:55 +01:00
sdl-modern-perl.patch perlPackages.SDL: import patch 2023-09-21 09:14:44 +00:00
Socket6-sv_undef.patch
TextBibTeX-use-lib.patch perlPackages.TextBibTeX: always install libbtparse.so to /lib instead of /lib64 2023-06-01 16:32:17 +08:00
tk-configure-implicit-int-fix.patch perlPackages.Tk: fix build with clang 16 2023-09-06 18:30:41 -04:00
xml-grove-utf8.patch
xml-parser-0001-HACK-Assumes-Expat-paths-are-good.patch