Stalwart Mail needs a specific version of rocksdb (in particular,
stalwart-mail 0.10.5 does not support rocksdb 9).
This makes creating backup scripts harder, since the version of
rocksdb.tools should match the version in use by stalwart-mail.
At the moment, there doesn't seem to be a way to get the version
of rocksdb used to build stalwart-mail from its derivation, so this
commits adds it to passthrough.
In preparation for the deprecation of `stdenv.isX`.
These shorthands are not conducive to cross-compilation because they
hide the platforms.
Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way
One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059
There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.
```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
We're using the upstream systemd service file since dfa130e.
It specifies `PermissionsStartOnly = true`, which is not only
deprecated in recent systemd, but also interferes with the
`ExecPreStart` in our module.
This adds a patch to the package solving this, allowing our module and
NixOS test to work until this gets merged upstream.
Upstream PR: https://github.com/stalwartlabs/mail-server/pull/528