Skip to content

Commit

Permalink
package croissant
Browse files Browse the repository at this point in the history
  • Loading branch information
vivlim committed Feb 11, 2024
1 parent 1f167ea commit 162060c
Show file tree
Hide file tree
Showing 5 changed files with 152 additions and 0 deletions.
33 changes: 33 additions & 0 deletions generated-luarocks/croissant.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ argparse, buildLuarocksPackage, compat53, fetchgit, fetchurl, hump, lpeg, lua
, luaOlder, sirocco, ... }:
buildLuarocksPackage {
pname = "croissant";
version = "0.0.1-6";
knownRockspec = (fetchurl {
url = "mirror://luarocks/croissant-0.0.1-6.rockspec";
sha256 = "0jdj7akx9r1ak40ff1997f7i6d5hw8533w21fckdvvpyg01kc8qz";
}).outPath;
src = fetchgit (removeAttrs (builtins.fromJSON ''
{
"url": "https://github.com/giann/croissant",
"rev": "65f2d3d61b9b13bdc380afc2eaf0c7c6ef461be7",
"date": "2019-11-19T07:23:36+01:00",
"path": "/nix/store/lahj87bdnn6w23p2plfddz7gpn5a0s4f-croissant",
"sha256": "0ya8wc97bsnxdccdcfvp2202a8wlypn8gv9hfdx6193qyds2yvp9",
"hash": "sha256-6W4vdPN4pGB6czDth+z1lCMlgBB3O9YYa93qdRLjSHk=",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
"leaveDotGit": false
}
'') [ "date" "path" "sha256" ]);

disabled = (luaOlder "5.1");
propagatedBuildInputs = [ argparse compat53 hump lpeg lua sirocco ];

meta = {
homepage = "https://github.com/giann/croissant";
description = "A Lua REPL implemented in Lua";
license.fullName = "MIT/X11";
};
}
32 changes: 32 additions & 0 deletions generated-luarocks/hump.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ buildLuarocksPackage, fetchgit, fetchurl, lua, luaOlder, ... }:
buildLuarocksPackage {
pname = "hump";
version = "0.4-2";
knownRockspec = (fetchurl {
url = "mirror://luarocks/hump-0.4-2.rockspec";
sha256 = "0j89rznvq90bvjsj1mj9plxmxj8c7b4jkqsllw882f8xscdqq2sa";
}).outPath;
src = fetchgit (removeAttrs (builtins.fromJSON ''
{
"url": "https://github.com/vrld/hump",
"rev": "08937cc0ecf72d1a964a8de6cd552c5e136bf0d4",
"date": "2021-03-23T19:50:46+01:00",
"path": "/nix/store/pph6fj29fshcysa3g80qf8vw2znyv238-hump",
"sha256": "0vr8zclf0c1x9mwv49m8ldvsdbidms25agl24rcng3q1n15v4289",
"hash": "sha256-CQmyS7ABj2dZJoI+VYSuLa6md6OoJrJ5TT0w4Cj7KG8=",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
"leaveDotGit": false
}
'') [ "date" "path" "sha256" ]);

disabled = (luaOlder "5.1");
propagatedBuildInputs = [ lua ];

meta = {
homepage = "https://hump.readthedocs.io";
description = "Lightweight game development utilities";
license.fullName = "MIT";
};
}
22 changes: 22 additions & 0 deletions generated-luarocks/lpeg.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{ buildLuarocksPackage, fetchurl, lua, luaOlder, ... }:
buildLuarocksPackage {
pname = "lpeg";
version = "1.1.0-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/lpeg-1.1.0-1.rockspec";
sha256 = "03af1p00madfhfxjzrsxb0jm0n49ixwadnkdp0vbgs77d2v985jn";
}).outPath;
src = fetchurl {
url = "http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-1.1.0.tar.gz";
sha256 = "0aimsjpcpkh3kk65f0pg1z2bp6d83rn4dg6pgbx1yv14s9kms5ab";
};

disabled = (luaOlder "5.1");
propagatedBuildInputs = [ lua ];

meta = {
homepage = "http://www.inf.puc-rio.br/~roberto/lpeg.html";
description = "Parsing Expression Grammars For Lua";
license.fullName = "MIT/X11";
};
}
33 changes: 33 additions & 0 deletions generated-luarocks/sirocco.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ bit32, buildLuarocksPackage, compat53, fetchgit, fetchurl, hump, lua, lua-term
, luaOlder, wcwidth, ... }:
buildLuarocksPackage {
pname = "sirocco";
version = "0.0.1-5";
knownRockspec = (fetchurl {
url = "mirror://luarocks/sirocco-0.0.1-5.rockspec";
sha256 = "0bs2zcy8sng4x16clfz47cn4l6fw43rj224vjgmnkfvp9nznd4b4";
}).outPath;
src = fetchgit (removeAttrs (builtins.fromJSON ''
{
"url": "https://github.com/giann/sirocco",
"rev": "b2af2d336e808e763b424d2ea42e6a2c2b4aa24d",
"date": "2019-03-10T06:11:17+01:00",
"path": "/nix/store/jh7vjxmlm7m47n4pydd2x7wph1ga5ljv-sirocco",
"sha256": "1mkkdfjc7zc3as3vpyvqbg3ldgcb2s16lgxc8mrxc74kwiblgird",
"hash": "sha256-LcdHV+STHNZzRaw/aoIWi71Gx1t4+7uHVoP9w6Rrc9Y=",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
"leaveDotGit": false
}
'') [ "date" "path" "sha256" ]);

disabled = (luaOlder "5.1");
propagatedBuildInputs = [ bit32 compat53 hump lua lua-term wcwidth ];

meta = {
homepage = "https://github.com/giann/sirocco";
description = "A collection of useful cli prompts";
license.fullName = "MIT/X11";
};
}
32 changes: 32 additions & 0 deletions generated-luarocks/wcwidth.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ buildLuarocksPackage, fetchgit, fetchurl, lua, luaOlder, ... }:
buildLuarocksPackage {
pname = "wcwidth";
version = "0.5-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/wcwidth-0.5-1.rockspec";
sha256 = "0hyl8f3fvmiq2grhafz1cbnkp60mb58y2p8jg7yafin9kk69zg64";
}).outPath;
src = fetchgit (removeAttrs (builtins.fromJSON ''
{
"url": "https://github.com/aperezdc/lua-wcwidth",
"rev": "2742b255aec83b80bc288cedc02681a9c1db3208",
"date": "2020-03-29T19:46:48+03:00",
"path": "/nix/store/lysh6077537mwx72k90ak6rp7zzs5fr7-lua-wcwidth",
"sha256": "1ay2dq82lca58na939k0774vq7x0k2hhj059ylhg2wvm9mn3cqxb",
"hash": "sha256-q2M2bE11c/Eg9akACaGYoB+8yTlgppGURUUxKhBuwqs=",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
"leaveDotGit": false
}
'') [ "date" "path" "sha256" ]);

disabled = (luaOlder "5.1");
propagatedBuildInputs = [ lua ];

meta = {
homepage = "https://github.com/aperezdc/lua-wcwidth";
description = "Pure Lua implementation of the wcwidth() function";
license.fullName = "MIT/X11";
};
}

0 comments on commit 162060c

Please sign in to comment.