55 lines
1.6 KiB
Nix
55 lines
1.6 KiB
Nix
{ pkgs, lua }:
|
|
|
|
rec {
|
|
nums = lua.pkgs.buildLuarocksPackage {
|
|
pname = "nums";
|
|
version = "20130228-2";
|
|
|
|
knownRockspec = (pkgs.fetchurl {
|
|
url = "https://luarocks.org/manifests/user-none/lua-nums-scm-1.rockspec";
|
|
sha256 = "sha256-fxfcfiAgGGRhyCQZYYdUPs/WplMWVZH4QEPRlSW53uE=";
|
|
}).outPath;
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
repo = "lua-nums";
|
|
owner = "user-none";
|
|
rev = "fef161a940aaafdbb8d9c75fe073b8bb43152474";
|
|
sha256 = "sha256-coI8JHMx+6sikSndfbUIuo1jutHUnM3licI2s7I7fmQ=";
|
|
};
|
|
|
|
disabled = with lua; (lua.pkgs.luaOlder "5.3") || (lua.pkgs.luaAtLeast "5.5");
|
|
|
|
meta = {
|
|
homepage = "https://github.com/user-none/lua-nums";
|
|
description = "Pure Lua number library providing BigNum and fixed width unsigned integer types";
|
|
license.fullName = "MIT";
|
|
};
|
|
};
|
|
|
|
hashings =lua.pkgs.buildLuarocksPackage {
|
|
pname = "hashings";
|
|
version = "20130228-2";
|
|
|
|
knownRockspec = (pkgs.fetchurl {
|
|
url = "https://luarocks.org/manifests/user-none/lua-hashings-scm-1.rockspec";
|
|
sha256 = "sha256-SGx6kYhigTCmJQr/lFW6TARpM3na18M8lzgIDcOiCg0=";
|
|
}).outPath;
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
repo = "lua-hashings";
|
|
owner = "user-none";
|
|
rev = "89879fe79b6f3dc495c607494126ec9c3912b8e9";
|
|
sha256 = "sha256-/YagiUKAQKtHicsNE4amkHOJZvBEpDMs0qVjszkYnw4=";
|
|
};
|
|
|
|
disabled = with lua; (lua.pkgs.luaOlder "5.3") || (lua.pkgs.luaAtLeast "5.5");
|
|
propagatedBuildInputs = [ lua nums ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/user-none/lua-hashings";
|
|
description = "Pure Lua cryptographic hash library";
|
|
license.fullName = "MIT";
|
|
};
|
|
};
|
|
}
|