commit dea9d925a5572f753a3ba1a227fbcd0135b865f9 parent dd139c9796800c73ca722e320622b536c0ae6a70 Author: Daniel Barlow <dan@telent.net> Date: Tue, 27 Dec 2022 12:23:24 +0000 add lume module Diffstat:
| M | default.nix | | | 15 | +++++++++++++++ |
| M | frame.fnl | | | 2 | ++ |
2 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/default.nix b/default.nix @@ -19,11 +19,26 @@ , writeText }: let pname = "dunlin"; + lume = let lua = lua5_3; in lua53Packages.buildLuaPackage rec { + pname = "lume"; + version = "1"; + src = fetchFromGitHub { + repo = "lume"; owner = "rxi"; + rev = "98847e7812cf28d3d64b289b03fad71dc704547d"; + hash = "sha256-/u23EqgjjkU8FV9oXvMNXBkY8JAOJUhJAzXTSibJthU="; + }; + buildPhase = ":"; + installPhase = '' + mkdir -p "$out/share/lua/${lua.luaversion}" + cp lume.lua "$out/share/lua/${lua.luaversion}" + ''; + }; lua = lua5_3.withPackages (ps: with ps; [ lgi luafilesystem luaposix readline + lume ]); fennel_ = lua.pkgs.fennel; glib_networking_gio = "${glib-networking}/lib/gio/modules"; diff --git a/frame.fnl b/frame.fnl @@ -1,5 +1,7 @@ (local { : Gtk : Gdk : WebKit2 : cairo } (require :lgi)) (local { : view } (require :fennel)) +(local lume (require :lume)) + (local Command (require :command)) (local keymap (require :keymap))