forked from DGNum/liminix
add lualinux package
This commit is contained in:
parent
90d9d0e811
commit
72789984ce
2 changed files with 23 additions and 0 deletions
|
@ -71,6 +71,7 @@ in {
|
||||||
levitate = callPackage ./levitate {};
|
levitate = callPackage ./levitate {};
|
||||||
libubootenv = callPackage ./libubootenv {};
|
libubootenv = callPackage ./libubootenv {};
|
||||||
linotify = callPackage ./linotify {};
|
linotify = callPackage ./linotify {};
|
||||||
|
lualinux = callPackage ./lualinux {};
|
||||||
|
|
||||||
# we need to build real lzma instead of using xz, because the lzma
|
# we need to build real lzma instead of using xz, because the lzma
|
||||||
# decoder in u-boot doesn't understand streaming lzma archives
|
# decoder in u-boot doesn't understand streaming lzma archives
|
||||||
|
|
22
pkgs/lualinux/default.nix
Normal file
22
pkgs/lualinux/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{ lua, lib, fetchFromGitHub }:
|
||||||
|
let
|
||||||
|
pname = "lualinux";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
repo = "lualinux";
|
||||||
|
owner = "philanc";
|
||||||
|
rev = "1d4c962aad9cbe01c05df741b91e8b39c356362c";
|
||||||
|
hash = "sha256-+Ys4sERG+TI8nRzG38UP+KqbH0efspaX0j4IHCt56RI=";
|
||||||
|
};
|
||||||
|
in lua.pkgs.buildLuaPackage {
|
||||||
|
inherit pname;
|
||||||
|
version = "0.1"; # :shrug:
|
||||||
|
|
||||||
|
inherit src;
|
||||||
|
makeFlags = [ "LUADIR=." "lualinux.so" ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p "$out/lib/lua/${lua.luaversion}"
|
||||||
|
cp ${pname}.so "$out/lib/lua/${lua.luaversion}/"
|
||||||
|
'';
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue