Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
Cadey Ratio 2021-05-09 15:20:34 +00:00
parent 448aab6781
commit 3ef4d6557e
3 changed files with 27 additions and 6 deletions

View File

@ -1,6 +1,7 @@
run = (cmd) ->
with io.popen cmd, "r"
print \read "*a"
\close!
status = os.execute cmd
unless status
error string.format "got nonzero exit status %d", status
run "./test.sh"
run "nix-build"

View File

@ -6,11 +6,11 @@ with luaPackages;
buildLuarocksPackage {
pname = "ln";
version = "0.2.0-1";
version = "0.2.1-2";
src = fetchurl {
url = "https://luarocks.org/ln-0.2.0-1.src.rock";
sha256 = "0ff0139d8fkyp35csfs75b1jn9q37v5y35wzml82ff35k0sgwkam";
url = "https://luarocks.org/ln-0.2.1-2.src.rock";
sha256 = "1hb1vw68w407y05nprp352c0di6iybz4gjdhc0p521cpif4l8i1l";
};
propagatedBuildInputs = [ lua dkjson ];

View File

@ -0,0 +1,20 @@
package = "ln"
version = "0.2.1-2"
source = {
url = "git+https://tulpa.dev/cadey/lua-ln"
}
description = {
homepage = "https://tulpa.dev/cadey/lua-ln",
license = "0bsd",
summary = "The natural log function"
}
dependencies = {
"lua",
"dkjson"
}
build = {
type = "builtin",
modules = {
ln = "src/ln.lua"
}
}