From 98143c1ef19f7a5c79d6c48a2999c3511896b77d Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 30 Sep 2015 16:44:05 +0200 Subject: catch for zero content extraModules --- customized/prosody.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'customized/prosody.nix') diff --git a/customized/prosody.nix b/customized/prosody.nix index 81228133..86502233 100644 --- a/customized/prosody.nix +++ b/customized/prosody.nix @@ -18,7 +18,7 @@ let getLuaPath = lib : getPath lib "lua"; getLuaCPath = lib : getPath lib "so"; copyModule = name : "cp -rv $communityModules/${name} $out/lib/prosody/modules/"; - copyExtraModule = path : "cp -rv $name/* $out/lib/prosody/modules/"; + copyExtraModule = path : "n=0; for i in $path/*; do n=1; done; if [[ $n -gt 0 ]]; then cp -rv $path/* $out/lib/prosody/modules/; fi"; luaPath = concatStringsSep ";" (map getLuaPath libs); luaCPath = concatStringsSep ";" (map getLuaCPath libs); copyModules = concatStringsSep ";" (map copyModule (communityModules ++ ["mod_websocket"])); -- cgit v1.2.3