luaprompt: init at 0.8

Fix #223852
This commit is contained in:
Wu, Zhenyu 2024-06-10 15:16:03 +08:00 committed by Matthieu Coudron
parent 38dc5f0137
commit 9b4b3c2959
3 changed files with 32 additions and 0 deletions

View File

@ -76,6 +76,7 @@ lualdap,,,,,,aanderse
lualogging,,,,,,
luaossl,,,,,5.1,
luaposix,,,,34.1.1-1,,vyp lblasc
luaprompt,,,,,,Freed-Wu
luarepl,,,,,,
luarocks,,,,,,mrcjkb teto
luarocks-build-rust-mlua,,,,,,mrcjkb

1 name rockspec ref server version luaversion maintainers
76 lualogging
77 luaossl 5.1
78 luaposix 34.1.1-1 vyp lblasc
79 luaprompt Freed-Wu
80 luarepl
81 luarocks mrcjkb teto
82 luarocks-build-rust-mlua mrcjkb

View File

@ -1867,6 +1867,31 @@ buildLuarocksPackage {
};
}) {};
luaprompt = callPackage({ argparse, buildLuarocksPackage, fetchFromGitHub, fetchurl, luaOlder }:
buildLuarocksPackage {
pname = "luaprompt";
version = "0.8-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/luaprompt-0.8-1.rockspec";
sha256 = "17v7yqkvm4rxszqvqk3f6a6vqysh80p18l1ryif79bc7ic948br4";
}).outPath;
src = fetchFromGitHub {
owner = "dpapavas";
repo = "luaprompt";
rev = "v0.8";
hash = "sha256-GdI5sj7FBeb9q23oxVOzT+yVhMYTnggaN8Xt/z/2xZo=";
};
disabled = luaOlder "5.1";
propagatedBuildInputs = [ argparse ];
meta = {
homepage = "https://github.com/dpapavas/luaprompt";
description = "A Lua command prompt with pretty-printing and auto-completion";
license.fullName = "MIT/X11";
};
}) {};
luaposix = callPackage({ bit32, buildLuarocksPackage, fetchurl, fetchzip, luaAtLeast, luaOlder }:
buildLuarocksPackage {
pname = "luaposix";

View File

@ -409,6 +409,12 @@ in
];
});
luaprompt = prev.luaprompt.overrideAttrs (_: {
externalDeps = [
{ name = "READLINE"; dep = readline; }
{ name = "HISTORY"; dep = readline; }
];
});
# As a nix user, use this derivation instead of "luarocks_bootstrap"
luarocks = prev.luarocks.overrideAttrs (oa: {