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
3 changed files with 35 additions and 0 deletions

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