diff options
author | Matthieu Coudron <886074+teto@users.noreply.github.com> | 2024-03-19 21:17:48 +0100 |
---|---|---|
committer | Matthieu Coudron <886074+teto@users.noreply.github.com> | 2024-03-20 13:08:02 +0100 |
commit | 11fc7cb8d9d429c06710de725ff893b873b9cd22 (patch) | |
tree | b7cfaf175366ed64a76e7db736d1d864fb451d20 | |
parent | fd860b6f2ed012a577079fab960805c334918dfa (diff) |
luaPackages.mimetypes: init at 1.0.0-3
-rw-r--r-- | maintainers/scripts/luarocks-packages.csv | 1 | ||||
-rw-r--r-- | pkgs/development/lua-modules/generated-packages.nix | 24 |
2 files changed, 25 insertions, 0 deletions
diff --git a/maintainers/scripts/luarocks-packages.csv b/maintainers/scripts/luarocks-packages.csv index 325b2f30f0473..fd6c59c0b46fc 100644 --- a/maintainers/scripts/luarocks-packages.csv +++ b/maintainers/scripts/luarocks-packages.csv @@ -95,6 +95,7 @@ magick,,,,,5.1,donovanglover markdown,,,,,, mediator_lua,,,,,, middleclass,,,,,, +mimetypes,,,,,, mpack,,,,,, moonscript,https://github.com/leafo/moonscript.git,dev-1,,,,arobyn nlua,,,,,,teto diff --git a/pkgs/development/lua-modules/generated-packages.nix b/pkgs/development/lua-modules/generated-packages.nix index 785de9eafe44a..f63a2acd23dce 100644 --- a/pkgs/development/lua-modules/generated-packages.nix +++ b/pkgs/development/lua-modules/generated-packages.nix @@ -2726,6 +2726,30 @@ buildLuarocksPackage { }; }) {}; +mimetypes = callPackage({ buildLuarocksPackage, fetchurl, lua, luaOlder }: +buildLuarocksPackage { + pname = "mimetypes"; + version = "1.0.0-3"; + knownRockspec = (fetchurl { + url = "mirror://luarocks/mimetypes-1.0.0-3.rockspec"; + sha256 = "02f5x5pkz6fba71mp031arrgmddsyivn5fsa0pj3q3a7nxxpmnq9"; + }).outPath; + src = fetchurl { + url = "https://github.com/lunarmodules/lua-mimetypes/archive/v1.0.0/lua-mimetypes-1.0.0.tar.gz"; + sha256 = "1rc5lnzvw4cg8wxn4w4sar2xgf5vaivdd2hgpxxcqfzzcmblg1zk"; + }; + + disabled = (luaOlder "5.1"); + propagatedBuildInputs = [ lua ]; + + meta = { + homepage = "https://github/lunarmodules/lua-mimetypes/"; + description = "A simple library for looking up the MIME types of files."; + license.fullName = "MIT/X11"; + }; +}) {}; + + moonscript = callPackage({ argparse, buildLuarocksPackage, fetchgit, lpeg, lua, luaOlder, luafilesystem }: buildLuarocksPackage { pname = "moonscript"; |