3
0
Fork 0
forked from mirrors/nixpkgs

luaPackages.readline: init at 2.6-0 (#91854)

This commit is contained in:
Mitsuhiro Nakamura 2020-07-02 00:58:50 +09:00 committed by GitHub
parent 5bb1198ccc
commit a1bea5278d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 0 deletions

View file

@ -74,6 +74,7 @@ moonscript,,,,,arobyn
nvim-client,,,,,
penlight,,,,,
rapidjson,,,,,
readline,,,,,
say,,,,,
std__debug,std._debug,,,,
std_normalize,std.normalize,,,,

1 # nix name luarocks name server version luaversion maintainers
74 nvim-client
75 penlight
76 rapidjson
77 readline
78 say
79 std__debug std._debug
80 std_normalize std.normalize

View file

@ -1407,6 +1407,23 @@ rapidjson = buildLuarocksPackage {
license.fullName = "MIT";
};
};
readline = buildLuarocksPackage {
pname = "readline";
version = "2.6-0";
src = fetchurl {
url = mirror://luarocks/readline-2.6-0.src.rock;
sha256 = "1fvz7nqvkdazp30wn5n62n8i97qrfgznbykdpf8cnflqfpd1shms";
};
disabled = (luaOlder "5.1") || (luaAtLeast "5.4");
propagatedBuildInputs = [ lua luaposix ];
meta = with stdenv.lib; {
homepage = "http://www.pjb.com.au/comp/lua/readline.html";
description = "Interface to the readline library";
license.fullName = "MIT/X11";
};
};
say = buildLuarocksPackage {
pname = "say";
version = "1.3-1";

View file

@ -328,6 +328,23 @@ with super;
'';
});
readline = (super.readline.override ({
unpackCmd = ''
unzip "$curSrc"
tar xf *.tar.gz
'';
propagatedBuildInputs = super.readline.propagatedBuildInputs ++ [ pkgs.readline ];
extraVariables = rec {
READLINE_INCDIR = "${pkgs.readline.dev}/include";
HISTORY_INCDIR = READLINE_INCDIR;
};
})).overrideAttrs (old: {
# Without this, source root is wrongly set to ./readline-2.6/doc
setSourceRoot = ''
sourceRoot=./readline-2.6
'';
});
pulseaudio = super.pulseaudio.override({
buildInputs = [
pkgs.libpulseaudio