nixpkgs/pkgs/desktops
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
..
arcan prio: change self to finalAttrs 2023-04-26 08:00:11 -03:00
budgie budgie.budgie-desktop: 10.8 -> 10.8.1 2023-10-01 20:22:06 -03:00
cdesktopenv cdesktopenv: 2.3.2 -> 2.5.1 2023-06-29 17:18:45 +03:00
cinnamon cinnamon.nemo: 5.8.4 -> 5.8.5 2023-09-29 20:37:08 +08:00
deepin Merge pull request #256604 from wineee/deepin-compressor 2023-09-22 08:34:40 +02:00
enlightenment enlightenment.terminology: 1.12.1 -> 1.13.0 2022-12-19 11:58:43 +00:00
expidus expidus-file-manager: update 0.2.0 -> 0.2.1 2023-09-07 21:29:39 -07:00
gnome paperwm: remove manually packaged extension 2023-09-23 23:34:41 +02:00
gnome-2 gnome2: remove reference to gdk_pixbuf (throw since 2022-02) 2023-10-03 15:59:10 -06:00
gnustep treewide: refactor .attrs.sh detection 2023-10-04 18:36:57 +02:00
lomiri lomiri.geonames: Use devdoc for documentation instead (#253407) 2023-09-05 23:15:46 +02:00
lumina treewide: noop: refer to src.name or similar in sourceRoot where appropriate, part 1: trivial cases 2023-08-03 16:32:03 +00:00
lxde lxpanel: don't use alias libwnck3 2022-11-26 15:57:52 -08:00
lxqt lxqt.xdg-desktop-portal-lxqt: add libexif and menu-cache dependencies 2023-08-31 14:22:05 -03:00
mate mate.mate-user-guide: 1.26.1 -> 1.26.2 2023-09-19 20:47:36 +08:00
pantheon Merge pull request #257432 from bobby285271/upd/pantheon 2023-09-29 14:25:03 +08:00
plasma-5 plasma-workspace: backport patch for cleaner shutdowns 2023-09-30 10:57:40 +03:00
rox/rox-filer rox-filer: simplify sourceRoot 2023-08-12 08:29:56 +00:00
surf-display
xfce xfce.gigolo: 0.5.2 -> 0.5.3 2023-09-30 13:00:33 +08:00