From a4067cefd21f3b5c73d9ccf1cc2cbcf173374acb Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 27 Sep 2015 16:17:09 +0200 Subject: Took care of pam_auth deps for prosody --- custom/luaPam.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 custom/luaPam.nix (limited to 'custom') diff --git a/custom/luaPam.nix b/custom/luaPam.nix new file mode 100644 index 00000000..f0c93e4f --- /dev/null +++ b/custom/luaPam.nix @@ -0,0 +1,26 @@ +{ stdenv +, pkgs +, fetchgit +}: + +let + lua = pkgs.luaPackages.lua; +in pkgs.luaPackages.buildLuaPackage { + name = "lua-pam"; + buildInputs = (with pkgs; [ pam ]); + src = fetchgit { + url = "https://github.com/devurandom/lua-pam"; + rev = "3818ee6346a976669d74a5cbc2a83ad2585c5953"; + sha256 = "1aci3psyxwxbls93w5b4vdhnrrp3w94i97dl8qrmjgigzbjszwvr"; + }; + preBuild = '' + makeFlagsArray=( + LUA_CPPFLAGS="-I${lua}/include -L${lua}/lib" + LUA_LIBS="-L${lua}/lib -llua" + ); + ''; + installPhase = '' + mkdir -p $out/lib/lua/${lua.luaversion} + install pam.so $out/lib/lua/${lua.luaversion}/ + ''; +} -- cgit v1.2.3