From 06c06c3256df99a0335773fc898170bc081ce581 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 27 Sep 2015 17:09:22 +0200 Subject: registered luaposix dep --- custom/luaPosix.nix | 14 ++++++++++++++ ymir.nix | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 custom/luaPosix.nix diff --git a/custom/luaPosix.nix b/custom/luaPosix.nix new file mode 100644 index 00000000..cbaaeb2d --- /dev/null +++ b/custom/luaPosix.nix @@ -0,0 +1,14 @@ +{ stdenv +, pkgs +, fetchurl +}: + +pkgs.luaPackages.buildLuaPackage rec { + name = "luaposix-${version}"; + version = "33.3.1"; + buildInputs = (with pkgs; [ perl ]); + src = fetchurl { + url = "https://github.com/luaposix/luaposix/archive/release-v${version}.tar.gz"; + sha256 = "1kxkn4hisx8454s4rid5p4xxq866x16f1hbzjzrd00qc9nkfvqa9"; + }; +} diff --git a/ymir.nix b/ymir.nix index 46e9f9f4..53dfd7c5 100644 --- a/ymir.nix +++ b/ymir.nix @@ -2,6 +2,7 @@ let luaPam = pkgs.callPackage ./custom/luaPam.nix {}; + luaPosix = pkgs.callPackage ./custom/luaPosix.nix {}; in { imports = [ @@ -22,7 +23,7 @@ in { inherit (pkgs.lua51Packages) luasocket luasec luaexpat luafilesystem luabitop luaevent luazlib; lua5 = pkgs.lua5_1; extraModules = ["mod_auth_pam"]; - extraLibs = [luaPam]; + extraLibs = [luaPam luaPosix]; }); }; -- cgit v1.2.3