unifi: LD_LIBRARY_PATH hack for embedded libsnappyjava.so, fixes #12897

Changed files
+2
nixos
modules
services
networking
+2
nixos/modules/services/networking/unifi.nix
···
partOf = systemdMountPoints;
bindsTo = systemdMountPoints;
unitConfig.RequiresMountsFor = stateDir;
+
# This a HACK to fix missing dependencies of dynamic libs extracted from jars
+
environment.LD_LIBRARY_PATH = with pkgs.stdenv; "${cc.cc}/lib";
preStart = ''
# Ensure privacy of state