forked from DGNum/liminix
19 lines
366 B
Nix
19 lines
366 B
Nix
{
|
|
fennel
|
|
, stdenv
|
|
, lua
|
|
}:
|
|
let pname = "anoia";
|
|
in stdenv.mkDerivation {
|
|
inherit pname;
|
|
version = "0.1";
|
|
src = ./.;
|
|
nativeBuildInputs = [ fennel ];
|
|
buildPhase = ''
|
|
fennel --compile init.fnl > init.lua
|
|
'';
|
|
installPhase = ''
|
|
mkdir -p "$out/share/lua/${lua.luaversion}/${pname}"
|
|
cp *.lua "$out/share/lua/${lua.luaversion}/${pname}"
|
|
'';
|
|
}
|