nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 45 lines 1.2 kB view raw
1{ 2 buildLuarocksPackage, 3 fetchurl, 4 luaAtLeast, 5 luaOlder, 6 luaposix, 7 readline, 8}: 9# upstream broken, can't be generated, so moved out from the generated set 10buildLuarocksPackage { 11 pname = "readline"; 12 version = "3.2-0"; 13 knownRockspec = 14 (fetchurl { 15 url = "mirror://luarocks/readline-3.2-0.rockspec"; 16 sha256 = "1r0sgisxm4xd1r6i053iibxh30j7j3rcj4wwkd8rzkj8nln20z24"; 17 }).outPath; 18 src = fetchurl { 19 # the rockspec url doesn't work because 'www.' is not covered by the certificate so 20 # I manually removed the 'www' prefix here 21 url = "http://pjb.com.au/comp/lua/readline-3.2.tar.gz"; 22 sha256 = "1mk9algpsvyqwhnq7jlw4cgmfzj30l7n2r6ak4qxgdxgc39f48k4"; 23 }; 24 25 luarocksConfig.variables = rec { 26 READLINE_INCDIR = "${readline.dev}/include"; 27 HISTORY_INCDIR = READLINE_INCDIR; 28 }; 29 unpackCmd = '' 30 unzip "$curSrc" 31 tar xf *.tar.gz 32 ''; 33 34 propagatedBuildInputs = [ 35 luaposix 36 readline.out 37 ]; 38 39 meta = { 40 homepage = "https://pjb.com.au/comp/lua/readline.html"; 41 description = "Interface to the readline library"; 42 license.fullName = "MIT/X11"; 43 broken = (luaOlder "5.1") || (luaAtLeast "5.5"); 44 }; 45}