summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--custom/luaPosix.nix14
-rw-r--r--ymir.nix3
2 files changed, 16 insertions, 1 deletions
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 @@
1{ stdenv
2, pkgs
3, fetchurl
4}:
5
6pkgs.luaPackages.buildLuaPackage rec {
7 name = "luaposix-${version}";
8 version = "33.3.1";
9 buildInputs = (with pkgs; [ perl ]);
10 src = fetchurl {
11 url = "https://github.com/luaposix/luaposix/archive/release-v${version}.tar.gz";
12 sha256 = "1kxkn4hisx8454s4rid5p4xxq866x16f1hbzjzrd00qc9nkfvqa9";
13 };
14}
diff --git a/ymir.nix b/ymir.nix
index 46e9f9f4..53dfd7c5 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -2,6 +2,7 @@
2 2
3let 3let
4 luaPam = pkgs.callPackage ./custom/luaPam.nix {}; 4 luaPam = pkgs.callPackage ./custom/luaPam.nix {};
5 luaPosix = pkgs.callPackage ./custom/luaPosix.nix {};
5in { 6in {
6 imports = 7 imports =
7 [ 8 [
@@ -22,7 +23,7 @@ in {
22 inherit (pkgs.lua51Packages) luasocket luasec luaexpat luafilesystem luabitop luaevent luazlib; 23 inherit (pkgs.lua51Packages) luasocket luasec luaexpat luafilesystem luabitop luaevent luazlib;
23 lua5 = pkgs.lua5_1; 24 lua5 = pkgs.lua5_1;
24 extraModules = ["mod_auth_pam"]; 25 extraModules = ["mod_auth_pam"];
25 extraLibs = [luaPam]; 26 extraLibs = [luaPam luaPosix];
26 }); 27 });
27 }; 28 };
28 29