nixpkgs/pkgs/applications
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
..
accessibility
audio Merge staging-next into staging 2023-10-04 12:01:34 +00:00
backup
blockchains fulcrum: 1.9.1 -> 1.9.2 2023-10-04 06:05:48 +01:00
display-managers sddm: backport a bunch of Wayland fixes 2023-10-03 12:48:58 +03:00
editors Merge staging-next into staging 2023-10-04 00:02:53 +00:00
emulators Merge pull request #258848 from r-ryantm/auto-update/retroarchBare 2023-10-04 00:06:35 +01:00
file-managers
finance
gis qgis, qgis-ltr: add patch for exiv2 0.28 2023-10-01 21:25:00 +02:00
graphics hexmap: unstable-2020-06-06 -> unstable 2023-01-26 2023-10-03 17:36:15 -07:00
kde
logging
maui libsForQt5.mauiPackages.shelf: depends on mauikit-documents 2023-09-30 10:56:23 -07:00
misc treewide: refactor .attrs.sh detection 2023-10-04 18:36:57 +02:00
networking Merge staging-next into staging 2023-10-04 12:01:34 +00:00
office Merge master into staging-next 2023-10-04 12:01:01 +00:00
plasma-mobile
printing/pappl
qubes/qubes-core-vchan-xen
radio Merge remote-tracking branch 'origin/master' into staging-next 2023-10-01 13:53:00 +00:00
science Merge master into staging-next 2023-10-04 12:01:01 +00:00
search
system sha256 -> hash 2023-10-03 23:32:03 -04:00
terminal-emulators alacritty: 0.12.2 -> 0.12.3 2023-10-03 00:49:47 +02:00
version-management Merge pull request #258804 from figsoda/mit 2023-10-03 19:12:42 -04:00
video Merge remote-tracking branch 'origin/master' into staging-next 2023-10-03 21:13:27 +02:00
virtualization Merge master into staging-next 2023-10-04 12:01:01 +00:00
window-managers Merge pull request #258088 from augustebaum/i3status-main-program 2023-10-01 21:32:03 +02:00