diff --git a/saturn/dbus-proxy.nix b/saturn/dbus-proxy.nix new file mode 100644 index 0000000..8643cb6 --- /dev/null +++ b/saturn/dbus-proxy.nix @@ -0,0 +1,29 @@ +{ lua, lgi, buildLuaPackage, fetchFromGitHub }: +let + + simpleName = "dbus_proxy"; + +in +# TODO: add busted and checkPhase? +buildLuaPackage rec { + version = "0.10.2"; + pname = simpleName; +# name = "${simpleName}-${version}"; + + src = fetchFromGitHub { + owner = "stefano-m"; + repo = "lua-${simpleName}"; + rev = "v${version}"; + sha256 = "0kl8ff1g1kpmslzzf53cbzfl1bmb5cb91w431hbz0z0vdrramh6l"; + }; + + propagatedBuildInputs = [ lgi ]; + + buildPhase = ":"; + + installPhase = '' + mkdir -p "$out/share/lua/${lua.luaversion}" + cp -r src/${simpleName} "$out/share/lua/${lua.luaversion}/" + ''; + +} diff --git a/saturn/default.nix b/saturn/default.nix index c2fa1b0..c6f73c7 100644 --- a/saturn/default.nix +++ b/saturn/default.nix @@ -15,7 +15,7 @@ let fennel = fetchurl { url = "https://fennel-lang.org/downloads/fennel-1.0.0"; hash = "sha256:1nha32yilzagfwrs44hc763jgwxd700kaik1is7x7lsjjvkgapw7"; }; - dbusProxy = callPackage ../beehive/dbus-proxy.nix { + dbusProxy = callPackage ./dbus-proxy.nix { inherit (lua53Packages) lgi buildLuaPackage; lua = lua5_3; };