2022-04-26 14:52:14 +00:00
|
|
|
{ stdenv
|
|
|
|
, callPackage
|
2022-04-26 22:01:30 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
|
2022-04-26 20:14:46 +00:00
|
|
|
, fennel
|
2022-04-26 21:13:37 +00:00
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
|
|
|
, gtk-layer-shell
|
2022-04-26 14:52:14 +00:00
|
|
|
, lua5_3
|
|
|
|
} :
|
|
|
|
let
|
2022-04-26 22:01:30 +00:00
|
|
|
lua = lua5_3;
|
2022-04-26 20:14:46 +00:00
|
|
|
fennel_ = (fennel.override { lua = lua5_3; });
|
2022-04-26 22:01:30 +00:00
|
|
|
luaDbusProxy = callPackage ./lua-dbus-proxy.nix {
|
|
|
|
inherit (lua.pkgs) lgi buildLuaPackage;
|
|
|
|
inherit lua;
|
|
|
|
};
|
|
|
|
inifile = lua.pkgs.buildLuaPackage rec {
|
|
|
|
pname = "inifile";
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
version = "1.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bartbes";
|
|
|
|
repo = "inifile";
|
|
|
|
rev = "f0b41a8a927f3413310510121c5767021957a4e0";
|
|
|
|
sha256 = "1ry0q238vbp8wxwy4qp1aychh687lvbckcf647pmc03rwkakxm4r";
|
|
|
|
};
|
|
|
|
buildPhase = ":";
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/share/lua/${lua.luaversion}"
|
|
|
|
cp inifile.lua "$out/share/lua/${lua.luaversion}/"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2022-04-26 20:14:46 +00:00
|
|
|
luaWithPackages = lua5_3.withPackages (ps: with ps; [
|
|
|
|
(toLuaModule fennel_)
|
2022-04-26 22:01:30 +00:00
|
|
|
inifile
|
|
|
|
luafilesystem
|
2022-04-26 21:13:37 +00:00
|
|
|
lgi
|
|
|
|
luaposix
|
2022-04-26 22:01:30 +00:00
|
|
|
luaDbusProxy
|
|
|
|
penlight
|
|
|
|
|
2022-04-26 20:14:46 +00:00
|
|
|
]);
|
2022-04-26 21:13:37 +00:00
|
|
|
kiwmi = callPackage ./kiwmi.nix { lua = lua5_3; };
|
2022-04-26 14:52:14 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "eufon";
|
|
|
|
version = "0.1";
|
2022-04-26 21:13:37 +00:00
|
|
|
buildInputs = [
|
|
|
|
luaWithPackages
|
|
|
|
kiwmi
|
|
|
|
gobject-introspection.dev
|
|
|
|
gtk-layer-shell
|
|
|
|
gtk3
|
|
|
|
];
|
|
|
|
|
2022-04-26 14:52:14 +00:00
|
|
|
src = ./.;
|
|
|
|
}
|