nixpkgs/pkgs/top-level
Maximilian Bosch 35b146ca31
nixos/nextcloud: fixup openssl compat change
Upon testing the change itself I realized that it doesn't build properly
because

* the `pname` of a php extension is `php-<name>`, not `<name>`.
* calling the extension `openssl-legacy` resulted in PHP trying to compile
  `ext/openssl-legacy` which broke since it doesn't exist:

      source root is php-8.1.12
      setting SOURCE_DATE_EPOCH to timestamp 1666719000 of file php-8.1.12/win32/wsyslog.c
      patching sources
      cdToExtensionRootPhase
      /nix/store/48mnkga4kh84xyiqwzx8v7iv090i7z66-stdenv-linux/setup: line 1399: cd: ext/openssl-legacy: No such file or directory

I didn't encounter that one before because I was mostly interested in
having a sane behavior for everyone not using this "feature" and the
documentation around this. My findings about the behavior with turning
openssl1.1 on/off are still valid because I tested this on `master` with
manually replacing `openssl` by `openssl_1_1` in `php-packages.nix`.

To work around the issue I had to slightly modify the extension
build-system for PHP:

* The attribute `extensionName` is now relevant to determine the output
  paths (e.g. `lib/openssl.so`). This is not a behavioral change for
  existing extensions because then `extensionName==name`.

  However when specifying `extName` in `php-packages.nix` this value is
  overridden and it is made sure that the extension called `extName` NOT
  `name` (i.e. `openssl` vs `openssl-legacy`) is built and installed.

  The `name` still has to be kept to keep the legacy openssl available
  as `php.extensions.openssl-legacy`.

Additionally I implemented a small VM test to check the behavior with
server-side encryption:

* For `stateVersion` below 22.11, OpenSSL 1.1 is used (in `basic.nix`
  it's checked that OpenSSL 3 is used). With that the "default"
  behavior of the module is checked.

* It is ensured that the PHP interpreter for Nextcloud's php-fpm
  actually loads the correct openssl extension.

* It is tested that (encrypted) files remain usable when (temporarily)
  installing OpenSSL3 (of course then they're not decryptable, but on a
  rollback that should still be possible).

Finally, a few more documentation changes:

* I also mentioned the issue in `nextcloud.xml` to make sure the issue
  is at least mentioned in the manual section about Nextcloud. Not too
  much detail here, but the relevant option `enableBrokenCiphersForSSE`
  is referenced.

* I fixed a few minor wording issues to also give the full context
  (we're talking about Nextcloud; we're talking about the PHP extension
  **only**; please check if you really need this even though it's
  enabled by default).

  This is because I felt that sometimes it might be hard to understand
  what's going on when e.g. an eval-warning appears without telling where
  exactly it comes from.
2022-11-11 14:45:46 +01:00
..
agda-packages.nix
aliases.nix Merge pull request #200201 from helsinki-systems/upd/varnish 2022-11-09 01:40:41 +01:00
all-packages.nix Merge pull request #200300 from thiagokokada/mame-tools-init 2022-11-10 07:45:00 -03:00
beam-packages.nix
config.nix pkgs/top-level: convert to MD option docs 2022-10-03 14:00:32 +02:00
coq-packages.nix coq: default to version 8.16 2022-10-12 20:38:44 +02:00
cubocore-packages.nix
cuda-packages.nix cudaPackages.cutensor: 1.3.1.3 -> 1.5.0.3 2022-10-21 21:45:19 -05:00
darwin-packages.nix
default.nix
dhall-packages.nix
dotnet-packages.nix RestSharp: 105.2.3 -> 106.12.0 2022-10-10 09:40:05 +02:00
emacs-packages.nix
emscripten-packages.nix treewide: move pkg-config, autoreconfHook, intltool to nativeBuildInputs 2022-09-26 17:53:26 +03:00
gnuradio-packages.nix
haskell-packages.nix haskell.compiler: upgrade to 9.2.4 for 9.2.* binary compiler 2022-09-26 18:02:02 +02:00
haxe-packages.nix
impure.nix
java-packages.nix {temurin,adoptopenjdk}-bin: use alpine_linux os for musl libc 2022-10-12 20:28:59 +02:00
kodi-packages.nix kodiPlugins.waveform-visualization: init at 19.0.2 2022-09-16 18:31:35 +02:00
linux-kernels.nix Revert "sysdig: pin to openssl_1_1" 2022-11-05 13:10:51 +08:00
lua-packages.nix
make-tarball.nix
metrics.nix
nim-packages.nix
nixpkgs-basic-release-checks.nix
ocaml-packages.nix ocamlPackages.ppx_yojson_conv: init at 0.15.1 2022-11-05 00:07:33 +01:00
octave-packages.nix top-level/octave-packages.nix: remove unused bindings 2022-09-26 22:18:48 -04:00
packages-config.nix packages-config: drop versioned emacsPackages alias 2022-10-24 00:24:12 +02:00
perl-packages.nix exiftool: add anthonyroussel to maintainers 2022-10-27 23:24:13 +02:00
php-packages.nix nixos/nextcloud: fixup openssl compat change 2022-11-11 14:45:46 +01:00
python2-packages.nix pythonPackages: ensure all derivations provide python modules 2022-10-27 10:03:16 +02:00
python-aliases.nix Merge pull request #196957 from Madouura/dev/protonup 2022-11-07 23:24:41 +01:00
python-packages.nix Merge pull request #200193 from fabaff/datasette-publish-fly 2022-11-08 15:48:22 +01:00
qt5-packages.nix Merge pull request #194031 from NickCao/stellarium 2022-11-04 15:33:03 +01:00
qt6-packages.nix qt6Packages.qxlsx: init 2022-11-05 21:39:10 +08:00
release-alternatives.nix
release-cross.nix
release-cuda.nix
release-haskell.nix haskell.packages.ghc924.purescript: allow building and test on Hydra 2022-10-30 17:25:14 +01:00
release-lib.nix
release-python.nix
release-r.nix
release-small.nix
release.nix pkgs/top-level/release.nix: disallow symbol clash between 'pkgs' and local jobs 2022-09-12 12:53:31 -07:00
ruby-packages.nix rubyPackages.git: init at 1.12.0 2022-10-26 10:23:12 -04:00
splice.nix
stage.nix Merge pull request #161657 from Atemu/pkgsDarwinIntel 2022-11-03 12:14:51 +11:00
unixtools.nix
wine-packages.nix wine: enable Vulkan on Darwin 2022-09-14 21:10:20 -04:00