summary refs log tree commit diff
path: root/nixos/modules/services/networking/unifi.nix
diff options
context:
space:
mode:
authorEric Litak <elitak@gmail.com>2016-02-11 08:44:00 -0800
committerEric Litak <elitak@gmail.com>2016-02-11 09:06:33 -0800
commitfc8a16f4edf052ba71ec7dcd289769fdf512ae87 (patch)
treecde449c8796bbbdfcebaf4edd2481edcce804082 /nixos/modules/services/networking/unifi.nix
parent885acea1dd82b0354ff2b6bcf1268b3031cf93df (diff)
downloadnixpkgs-fc8a16f4edf052ba71ec7dcd289769fdf512ae87.tar
nixpkgs-fc8a16f4edf052ba71ec7dcd289769fdf512ae87.tar.gz
nixpkgs-fc8a16f4edf052ba71ec7dcd289769fdf512ae87.tar.bz2
nixpkgs-fc8a16f4edf052ba71ec7dcd289769fdf512ae87.tar.lz
nixpkgs-fc8a16f4edf052ba71ec7dcd289769fdf512ae87.tar.xz
nixpkgs-fc8a16f4edf052ba71ec7dcd289769fdf512ae87.tar.zst
nixpkgs-fc8a16f4edf052ba71ec7dcd289769fdf512ae87.zip
unifi: LD_LIBRARY_PATH hack for embedded libsnappyjava.so, fixes #12897
Diffstat (limited to 'nixos/modules/services/networking/unifi.nix')
-rw-r--r--nixos/modules/services/networking/unifi.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/unifi.nix b/nixos/modules/services/networking/unifi.nix
index be8f12ecd32..4dc0cd96904 100644
--- a/nixos/modules/services/networking/unifi.nix
+++ b/nixos/modules/services/networking/unifi.nix
@@ -61,6 +61,8 @@ in
       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