From 3ef4d6557e57998e22778f88c8824c0e22dfa6d3 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sun, 9 May 2021 15:20:34 +0000 Subject: [PATCH] happy Signed-off-by: Christine Dodrill --- .within/test.moon | 7 ++++--- default.nix | 6 +++--- rockspec/ln-0.2.1-2.rockspec | 20 ++++++++++++++++++++ 3 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 rockspec/ln-0.2.1-2.rockspec diff --git a/.within/test.moon b/.within/test.moon index 78ef385..9c5b622 100644 --- a/.within/test.moon +++ b/.within/test.moon @@ -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" diff --git a/default.nix b/default.nix index 24558d9..9f3256e 100644 --- a/default.nix +++ b/default.nix @@ -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 ]; diff --git a/rockspec/ln-0.2.1-2.rockspec b/rockspec/ln-0.2.1-2.rockspec new file mode 100644 index 0000000..ddf8554 --- /dev/null +++ b/rockspec/ln-0.2.1-2.rockspec @@ -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" + } +}