nixpkgs/pkgs/servers/http
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
..
apache-httpd rustls-ffi: 0.9.2 -> 0.10.0 2023-07-13 22:39:54 +02:00
apache-modules mod_tile: testing enabled 2023-06-05 16:18:21 -07:00
apt-cacher-ng
bozohttpd treewide: sha512 → hash 2023-09-22 18:37:42 +02:00
cgiserver treewide: use sri hash (#256481) 2023-09-21 16:23:40 +02:00
couchdb couchdb3: fix jiffy NIF on darwin 2023-08-21 19:56:42 +02:00
darkhttpd
dave dave: use buildGoModule 2023-01-27 01:45:35 +00:00
dufs dufs: install completions 2023-10-01 04:20:00 +00:00
envoy envoy: fix another hash invalidator in fetcher 2023-09-15 14:41:44 -04:00
gatling
go-camo go-camo: 2.4.3 -> 2.4.4 2023-08-10 01:39:01 +00:00
h2o
hiawatha
hyp treewide/servers: use top-level fetchPypi 2023-05-25 12:06:38 -04:00
jboss
jetty jetty: 11.0.15 -> 11.0.16 2023-09-23 21:15:02 +02:00
lighttpd lighttpd: 1.4.69 -> 1.4.71 2023-06-01 17:08:02 +02:00
lwan
merecat
micro-httpd
mini-httpd treewide: move NIX_CFLAGS_COMPILE to the env attrset 2023-02-22 21:23:04 +02:00
nginx nginxMainline: 1.25.1 -> 1.25.2 2023-08-16 16:09:52 +03:00
nix-binary-cache
openresty
pomerium pomerium: 0.22.2 -> 0.23.0 2023-09-18 06:18:52 -05:00
pshs
quark
ran treewide: vendorSha256 → vendorHash 2023-09-13 01:03:44 -06:00
redstore
router lib/licenses: add Elastic License 2.0, drop Elastic License 2023-08-27 18:29:26 +02:00
showoff
spawn-fcgi
tengine tengine: 2.4.1 -> 3.0.0 2023-07-24 00:11:59 +00:00
thttpd
tomcat treewide: refactor .attrs.sh detection 2023-10-04 18:36:57 +02:00
trafficserver trafficserver: 9.2.1 -> 9.2.2 2023-09-17 18:42:33 +01:00
unit unit: 1.30.0 -> 1.31.0 2023-09-16 04:40:43 +00:00
webfs
webhook webhook: 2.8.0 -> 2.8.1 2023-05-30 02:04:29 +00:00
yaws