Evie Litherland-Smith
5ff572a9b7
Move home/ directory under system/ directory. Remove duplicated machine-specific config files, now handled as one per host (excluding hardware-configuration directory) Move as much configuration as possible out of flake.nix and into more appropriate files (e.g. system/default.nix) Add a desktop.nix and laptop.nix for system, both will import home/desktop.nix and home/laptop.nix respectively to reduce duplication in machine-specific config files Remove games and streaming directories, moved directly into Vanguard config file Remove home/personal.nix since it ended up being empty after changes Remove old sway config since I haven't been maintaining it and this refactor will definitely break it
39 lines
846 B
Nix
39 lines
846 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";
|
|
};
|
|
}
|