nixos/home/emacs/luarocks/scilua.nix
Evie Litherland-Smith 3342a6d943 Slightly flatten Emacs / language expressions
Move Python and Lua interpreter config up into Emacs default.nix, move
associated files (python external configs, scilua) up a level as
well. Remove JavaScript default install.

Add tkinter to default Python packages to fix plotting.
2024-07-15 06:58:00 +01:00

35 lines
876 B
Nix

{
buildLuarocksPackage,
fetchurl,
luaAtLeast,
luaOlder,
callPackage,
luajit,
openblas,
}: let
xsys = callPackage ./xsys.nix {};
in
buildLuarocksPackage {
pname = "sci";
version = "1.0.0.beta12-1";
knownRockspec =
(fetchurl {
url = "mirror://luarocks/sci-1.0.0.beta12-1.rockspec";
sha256 = "0lprn9x4zw767hdz8lyxmwrrfyn5xj3x50pm9b4qiwy8992mg00r";
})
.outPath;
src = fetchurl {
url = "https://github.com/stepelu/lua-sci/archive/v1.0.0-beta12.tar.gz";
sha256 = "0a45r7n13gfqckpdp1bmizqvjadn8nc5d6ff9gjw860g3i75sy2h";
};
disabled = (luaOlder "5.1") || (luaAtLeast "5.4");
propagatedBuildInputs = [luajit xsys openblas];
meta = {
homepage = "https://github.com/stepelu/lua-sci";
description = "Scientific Computing with LuaJIT";
license.fullName = "MIT";
};
}